This commit is contained in:
Hankin 2026-04-23 17:18:54 +08:00
parent f9e9858d11
commit 3d903286e4

View File

@ -565,6 +565,7 @@ class EarningController extends Controller
if ($earning_account->is_banned)
throw new Exception("账号id: {$earning_account->id}异常");
//查询余额足够?
Log::info("剩余金额:" . $earning_account->balance . " & 提现金额:" . $amount);
if ($earning_account->balance < $amount)
return $this->failure('提现金额不能大于可以提现的总金额!');
$trade_no = \CommonUtilsService::getTradeNO();