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