From ace399c903ae59b1d302e2d0a4c4cae2a44fdf17 Mon Sep 17 00:00:00 2001 From: yangduo Date: Tue, 14 Jan 2025 15:09:05 +0800 Subject: [PATCH] fix --- webapp/controller/RechargeController.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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']) {