Bläddra i källkod

修改签到的优惠券发放

jun 6 månader sedan
förälder
incheckning
b74bc80176
1 ändrade filer med 1 tillägg och 5 borttagningar
  1. 1 5
      app/Models/CustomClockinRecord.php

+ 1 - 5
app/Models/CustomClockinRecord.php

@@ -149,11 +149,7 @@ class CustomClockinRecord extends Model
                 }
                 }
             }
             }
             if ($coupon_id){
             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 )   {
                 if( !$result )   {
                     // 回退数据
                     // 回退数据