如果余额小于1则禁止启动

This commit is contained in:
iVampireSP.com 2022-09-05 14:26:36 +08:00
parent 680b08bd73
commit d4c8b0041c
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -25,7 +25,7 @@ public function update(Request $request, Host $host)
$user = $request->user(); $user = $request->user();
if ($host->user_id == $user->id) { if ($host->user_id == $user->id) {
if ($user->balance <= 0) { if ($user->balance < 1) {
return $this->error('余额不足'); return $this->error('余额不足');
} }