liugc 1 год назад
Родитель
Сommit
25010b1832
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/api/logic/UserCouponLogic.php

+ 3 - 0
app/api/logic/UserCouponLogic.php

@@ -9,6 +9,7 @@ use think\db\Query;
 use think\db\Where;
 use think\Exception;
 use think\facade\Db;
+use think\facade\Log;
 
 /**
  * @author 林海涛
@@ -174,9 +175,11 @@ 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'])){
                 $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]));
             }
             $data = UserCoupon::where('user_id',$params['user_id'])
                 ->where('voucher_count','>',0)