修改充值优惠的bug
Change-Id: Iddeb34914aebd418b45c43542ab41ffb875cea3c
This commit is contained in:
parent
6652429048
commit
4d4150e502
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue