爵位bug修改

This commit is contained in:
2025-12-24 18:13:00 +08:00
parent 0dfccdd617
commit 60d800ba0d
2 changed files with 4 additions and 1 deletions

View File

@@ -57,7 +57,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 > 5000) {
return V(0, '请选择正确的充值金额', null);
}
$user_code = db::name('user')->where(["id" => $user_id])->value('user_code');

View File

@@ -326,6 +326,9 @@ class Nobility extends Model
->where('delete_time', 0)
->where('id', 'in', $power_ids)
->select();
if(ceil($price) <= 0){
return ['code' => 0, 'msg' => "当前权限暂时无法购买此爵位,请升级更高爵位", 'data' => null];
}
$return = [
'lid' => $nobility_info['lid'],
'nobility_name' => $nobility_info['name'],