From 3b7542041446e8774168f8fb1299c1283170237d Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Sat, 30 Mar 2024 14:34:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=B4=AD=E4=B9=B0=E5=95=86=E5=93=81=E6=97=B6=20?= =?UTF-8?q?=E8=B5=A0=E9=80=81=E7=9A=84=E8=8F=9C=E5=8D=A1=E9=A2=9D=E5=BA=A6?= =?UTF-8?q?=E5=8F=98=E4=B8=BA=E9=85=92=E5=8D=A1=E9=A2=9D=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/exchangeQuota/OrderPaySuccessEvent.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/listener/exchangeQuota/OrderPaySuccessEvent.php b/app/listener/exchangeQuota/OrderPaySuccessEvent.php index 53085d0..292f120 100644 --- a/app/listener/exchangeQuota/OrderPaySuccessEvent.php +++ b/app/listener/exchangeQuota/OrderPaySuccessEvent.php @@ -78,7 +78,10 @@ class OrderPaySuccessEvent{ if((int)$userHoldInfo->uid <= 0) $userHoldInfo->uid = $groupOrder->uid; // 用户当前持有 菜卡额度 $userHoldInfoDish = app()->make(ExchangeQuotaRepository::class)->searchModel(['uid'=>$groupOrder->uid,'quota_type'=>2])->findOrEmpty(); - if((int)$userHoldInfoDish->uid <= 0) $userHoldInfoDish->uid = $groupOrder->uid; + if((int)$userHoldInfoDish->uid <= 0) { + $userHoldInfoDish->uid = $groupOrder->uid; + $userHoldInfoDish->quota_type = 2; + } // 总平台统一设置 赠送酒卡额度倍数 $exchangeQuotaMultiple = (int)systemConfig('exchange_quota_multiple'); // 循环处理单个商品