This commit is contained in:
root 2019-12-17 15:43:47 +08:00
parent 72faa37f4c
commit fd3c01e523
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ use App\Utils\Helper;
class InviteController extends Controller
{
public function save (Request $request) {
if (InviteCode::where('user_id', $request->session()->get('id'))->where('status', 0)->count() >= 5) {
if (InviteCode::where('user_id', $request->session()->get('id'))->where('status', 0)->count() >= config('v2board.invite_gen_limit', 5)) {
abort(500, '已达到创建数量上限');
}
$inviteCode = new InviteCode();

File diff suppressed because one or more lines are too long