改进 金额判断

This commit is contained in:
iVampireSP.com 2022-09-05 13:47:06 +08:00
parent 3ad1e0c0e4
commit b6aeed7e78
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();
if ($host->user_id == $user->id) {
if ($user->balance < 0) {
if ($user->balance <= 0) {
return $this->error('余额不足');
}