http 修改充值金额bug

This commit is contained in:
“wanyongkang”
2023-12-26 17:14:31 +08:00
parent e271a987f4
commit 1ce8534e14

View File

@@ -111,7 +111,7 @@ class Order extends Controller
$recharge_data['user_id'] = $this->userinfo['UserId'];
//判断充值的金额是否在赠送列表里
if (in_array($recharge_data['pay_money'],$this->ju_zhengsong)){
if (array_key_exists($recharge_data['pay_money'],$this->ju_zhengsong)){
$recharge_data['ju_money'] = $this->ju_zhengsong[$data['money']];
} else {
die;