改进 金额判断
This commit is contained in:
parent
3ad1e0c0e4
commit
b6aeed7e78
@ -25,7 +25,7 @@ public function update(Request $request, Host $host)
|
||||
$user = $request->user();
|
||||
if ($host->user_id == $user->id) {
|
||||
|
||||
if ($user->balance < 0) {
|
||||
if ($user->balance <= 0) {
|
||||
return $this->error('余额不足');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user