adjust
This commit is contained in:
parent
d137d78165
commit
06fb290383
@ -622,12 +622,17 @@ class RechargeController
|
||||
$firstrecharge = '';
|
||||
$vipinfo = array();
|
||||
$dailypurchase = array();
|
||||
$daysecs = phpcommon\getdayseconds(time());
|
||||
if ($rechargerow) {
|
||||
if ($rechargerow['first_data'] != null) {
|
||||
$firstrecharge = $rechargerow['first_data'];
|
||||
}
|
||||
if ($rechargerow['vip_info'] != null && $rechargerow['vip_info'] != '') {
|
||||
$vipinfo = json_decode($rechargerow['vip_info']);
|
||||
$vipinfo = json_decode($rechargerow['vip_info'], true);
|
||||
foreach ($vipinfo as $key => $val) {
|
||||
$vipinfo[$key]['award'] = $val['daily_time'] < $daysecs ? 0 : 1;
|
||||
unset($vipinfo[$key]['daily_time']);
|
||||
}
|
||||
}
|
||||
|
||||
if ($rechargerow['daily_purchase'] != null && $rechargerow['daily_purchase'] != '') {
|
||||
@ -664,7 +669,6 @@ class RechargeController
|
||||
);
|
||||
break;
|
||||
case 3: //每日累积充值
|
||||
$daysecs = phpcommon\getdayseconds(time());
|
||||
$itemarray['id'] = $item['id'];
|
||||
$itemarray['target'] = $item['target'];
|
||||
if ($item['time'] < $daysecs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user