From 1ce8534e14ddc365dd94d0e3ad7a6bae97caa837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 26 Dec 2023 17:14:31 +0800 Subject: [PATCH] =?UTF-8?q?http=20=E4=BF=AE=E6=94=B9=E5=85=85=E5=80=BC?= =?UTF-8?q?=E9=87=91=E9=A2=9Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controller/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/controller/Order.php b/app/http/controller/Order.php index 6b76611..f5e9c7c 100644 --- a/app/http/controller/Order.php +++ b/app/http/controller/Order.php @@ -111,7 +111,7 @@ class Order extends Controller $recharge_data['user_id'] = $this->userinfo['UserId']; //判断充值的金额是否在赠送列表里 - if (in_array($recharge_data['pay_money'],$this->ju_zhengsong)){ + if (array_key_exists($recharge_data['pay_money'],$this->ju_zhengsong)){ $recharge_data['ju_money'] = $this->ju_zhengsong[$data['money']]; } else { die;