等级修改bug修改

This commit is contained in:
2025-09-23 15:55:22 +08:00
parent 0728b51c8e
commit 8abfa49494
3 changed files with 9 additions and 8 deletions

View File

@@ -153,7 +153,7 @@ class User extends Model
$user_rechange = db::name('vs_user_recharge')->field('sum(money) as money')->where(['user_id' => $uid,'pay_status' => 2])->find();
//系统配置
$config_money = get_system_config_value('private_chat_recharge_money');
if($user_rechange['money'] < $config_money){
if(($config_money > 0) && ($user_rechange['money'] < $config_money)){
$user_info['is_can_chat'] = 0;
}else{
$user_info['is_can_chat'] = 1;