进入房间爵位信息相关

This commit is contained in:
2025-11-10 17:39:28 +08:00
parent 7756313a94
commit 2d89e1c6f7
2 changed files with 27 additions and 3 deletions

View File

@@ -1138,7 +1138,7 @@ function handelCharge($where,$data){
if(!$orderModel){
return 0;
}
if($orderModel['recharge_type'] == 1){//购买爵位
if($orderModel['nobility_id'] != 0){//购买爵位
//修改订单状态
$res1 = db::name('vs_user_recharge')->where($where)->update([
'pay_status' => 2,
@@ -1149,7 +1149,7 @@ function handelCharge($where,$data){
if(!$res1){
return 0;
}
model('Nobility')->buyNobility($orderModel['user_id'],$orderModel['recharge_type']);
model('Nobility')->buyNobility($orderModel['user_id'],$orderModel['nobility_id']);
return 1;
}else{//充值
db::startTrans();