浏览代码

修改签到的优惠券发放

jun 6 月之前
父节点
当前提交
b74bc80176
共有 1 个文件被更改,包括 1 次插入5 次删除
  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 )   {
                     // 回退数据