From dab7d4df81d069505b6386289022b82a31d7f05b Mon Sep 17 00:00:00 2001 From: yangduo Date: Wed, 15 Jan 2025 17:58:59 +0800 Subject: [PATCH] adjust --- webapp/controller/RechargeController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 0b9975c..ab2089d 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -199,7 +199,11 @@ class RechargeController $firstdata = $rechargerow['first_data']; if ($firstrecharge) { - $firstdata = $rechargerow['first_data'] . ',' . $goodsid; + if ($firstdata == NULL || $firstdata == '') { + $firstdata = $goodsid; + } else { + $firstdata = $rechargerow['first_data'] . ',' . $goodsid; + } } else { $diamond_present = 0; }