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'); // 循环处理单个商品