mirror of
https://github.com/v2board/v2board.git
synced 2025-01-31 10:39:15 +08:00
update
This commit is contained in:
parent
3802a1c973
commit
b1ab5e463b
@ -12,7 +12,7 @@ use App\Utils\Helper;
|
|||||||
class InviteController extends Controller
|
class InviteController extends Controller
|
||||||
{
|
{
|
||||||
public function save (Request $request) {
|
public function save (Request $request) {
|
||||||
if (InviteCode::where('user_id', $request->session()->get('id'))->count() >= 5) {
|
if (InviteCode::where('user_id', $request->session()->get('id'))->where('status', 0)->count() >= 5) {
|
||||||
abort(500, '已达到创建数量上限');
|
abort(500, '已达到创建数量上限');
|
||||||
}
|
}
|
||||||
$inviteCode = new InviteCode();
|
$inviteCode = new InviteCode();
|
||||||
|
Loading…
Reference in New Issue
Block a user