diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index f14f442..67bcc64 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -514,7 +514,7 @@ class RechargeController die(); } $itemidlist = explode('|', $dropconf['item_id']); - $itemnumlist = explode('|', $dropconf['item_num']); + $itemnumlist = explode('|', $dropconf['num']); $item_list = array(); foreach ($itemidlist as $key => $itemid) { array_push($item_list, array( @@ -548,7 +548,10 @@ class RechargeController ) ); } else { - $daily_purchase = json_decode($rechargerow['daily_purchase'], true); + $daily_purchase = array(); + if ($rechargerow['daily_purchase'] != null && $rechargerow['daily_purchase'] != '') { + json_decode($rechargerow['daily_purchase'], true); + } $found = false; foreach ($daily_purchase as $key => $dailyitem) { if ($dailyitem['id'] == $_REQUEST['goodsid']) {