fix
This commit is contained in:
parent
4f813d2227
commit
268bd8ce9b
@ -535,7 +535,7 @@ class RechargeController
|
|||||||
$recharge_activity = array();
|
$recharge_activity = array();
|
||||||
$activity = array();
|
$activity = array();
|
||||||
if ($rechargerow['activity'] != null && $rechargerow['activity'] != '') {
|
if ($rechargerow['activity'] != null && $rechargerow['activity'] != '') {
|
||||||
$activity = json_decode($rechargerow['activity'],true);
|
$activity = json_decode($rechargerow['activity'], true);
|
||||||
}
|
}
|
||||||
$needupdate = false;
|
$needupdate = false;
|
||||||
foreach ($activityconf as $key => $itemconf) {
|
foreach ($activityconf as $key => $itemconf) {
|
||||||
@ -573,7 +573,6 @@ class RechargeController
|
|||||||
$itemarray['cur'] = $item['cur'];
|
$itemarray['cur'] = $item['cur'];
|
||||||
$itemarray['award'] = $item['award'];
|
$itemarray['award'] = $item['award'];
|
||||||
}
|
}
|
||||||
array_push($recharge_activity, $itemarray);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -587,6 +586,13 @@ class RechargeController
|
|||||||
'award' => 0,
|
'award' => 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
$itemconf['type'] == 1 ||
|
||||||
|
$itemconf['type'] == 2
|
||||||
|
) {
|
||||||
|
$itemarray['cur'] /= 10;
|
||||||
|
$itemarray['target'] /= 10;
|
||||||
|
}
|
||||||
array_push($recharge_activity, $itemarray);
|
array_push($recharge_activity, $itemarray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user