修改充值优惠的bug

Change-Id: Iddeb34914aebd418b45c43542ab41ffb875cea3c
This commit is contained in:
vguanyiwgd 2024-06-20 11:24:25 +08:00
parent 6652429048
commit 4d4150e502
1 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,9 @@ class CI_Recharge_config {
// 结束无限制,只判断开始
if($year_count >= $v['many_times_consume_start']){
$gift_fee = $v['price'];
}else{
// 不在规则的次数内pass
continue;
}
}elseif($year_count >= $v['many_times_consume_start'] && $year_count <= $v['many_times_consume_end']){
// 在规则的次数内
@ -70,6 +73,7 @@ class CI_Recharge_config {
// 不在规则的次数内pass
continue;
}
break;
}else{
$count = $this->get_recharge_count($userInfo['id'], $v['gift_type']);
if($count != 0){
@ -83,6 +87,9 @@ class CI_Recharge_config {
// 结束无限制,只判断开始
if($count >= $v['many_times_consume_start']){
$gift_fee = $v['price'];
}else{
// 不在规则的次数内pass
continue;
}
}elseif($count >= $v['many_times_consume_start'] && $count <= $v['many_times_consume_end']){
// 在规则的次数内
@ -91,6 +98,7 @@ class CI_Recharge_config {
// 不在规则的金额内pass
continue;
}
break;
}
}
}