diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index e27bfb6..d2201ff 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -535,7 +535,7 @@ class RechargeController $recharge_activity = array(); $activity = array(); if ($rechargerow['activity'] != null && $rechargerow['activity'] != '') { - $activity = json_decode($rechargerow['activity'],true); + $activity = json_decode($rechargerow['activity'], true); } $needupdate = false; foreach ($activityconf as $key => $itemconf) { @@ -573,7 +573,6 @@ class RechargeController $itemarray['cur'] = $item['cur']; $itemarray['award'] = $item['award']; } - array_push($recharge_activity, $itemarray); break; } } @@ -587,6 +586,13 @@ class RechargeController 'award' => 0, ); } + if ( + $itemconf['type'] == 1 || + $itemconf['type'] == 2 + ) { + $itemarray['cur'] /= 10; + $itemarray['target'] /= 10; + } array_push($recharge_activity, $itemarray); }