如果余额小于1则禁止启动
This commit is contained in:
parent
680b08bd73
commit
d4c8b0041c
@ -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('余额不足');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user