whitefang 1 год назад
Родитель
Сommit
6e3fd80b50
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/api/logic/UserCouponLogic.php

+ 1 - 1
app/api/logic/UserCouponLogic.php

@@ -176,7 +176,7 @@ class UserCouponLogic extends BaseLogic
             // 商品Id - 代理Id - 代理券
             $remove_coupon_ids = [0];
             Log::info('remove_coupon_ids:'.json_encode([$params,$remove_coupon_ids]));
-            if(isset($params['goods_id']) && empty($params['goods_id'])){
+            if(isset($params['goods_id']) && !empty($params['goods_id'])){
                 $property_activity_id = Goods::where('id',$params['goods_id'])->value('property_activity_id');
                 $property_activity_id && $remove_coupon_ids = CouponRules::where('property_activity_id',$property_activity_id)->column('id')?:[0];
                 Log::info('remove_coupon_ids-1001:'.json_encode([$property_activity_id,$remove_coupon_ids]));