开设计费项目时才需要检查余额。

This commit is contained in:
iVampireSP.com 2022-10-28 17:04:36 +08:00
parent a77e37bb31
commit 9b0465fbeb
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -42,7 +42,7 @@ public function store(Request $request)
$user = User::findOrFail($request->user_id);
if ($user->balance <= 1) {
throw new BalanceNotEnoughException("余额不足,无法开设新的计费项目。");
return $this->error('此用户余额不足,无法开设计费项目。');
}
// 如果没有 name则随机