Browse Source

修改签到的优惠券发放

jun 6 tháng trước cách đây
mục cha
commit
b74bc80176
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      app/Models/CustomClockinRecord.php

+ 1 - 5
app/Models/CustomClockinRecord.php

@@ -149,11 +149,7 @@ class CustomClockinRecord extends Model
                 }
             }
             if ($coupon_id){
-                $data = [
-                    'coupon_id'     =>  $coupon_id,
-                    'custom_uid'    =>  $uid,
-                ];
-                $result                     = (new CustomCoupon())->add($data);
+                $result = (new CustomCoupon())->giveCoupon($coupon_id,$uid);
                 // 失败结束
                 if( !$result )   {
                     // 回退数据