充值上限

This commit is contained in:
2025-09-25 14:36:26 +08:00
parent a71257de2f
commit 848d491d59

View File

@@ -47,7 +47,7 @@ class Payment extends Controller
return V(0, '未成年不可充值!', null);
}
if (!is_numeric($money) || floor($money) != $money || $money <= 0 || $money >= 2000) {
if (!is_numeric($money) || floor($money) != $money || $money <= 0 || $money > 2000) {
return V(0, '请选择正确的充值金额', null);
}
$user_code = db::name('user')->where(["id" => $user_id])->value('user_code');