Browse Source

修复:getCurrentLoginUser方法未传参

萤火科技 2 years ago
parent
commit
a5116ab908
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/model/Coupon.php

+ 1 - 1
app/api/model/Coupon.php

@@ -76,7 +76,7 @@ class Coupon extends CouponModel
     private function setIsReceive($couponList)
     {
         // 获取用户已领取的优惠券
-        $userInfo = UserService::getCurrentLoginUser();
+        $userInfo = UserService::getCurrentLoginUser(false);
         if ($userInfo !== false) {
             $UserCouponModel = new UserCoupon;
             $userCouponIds = $UserCouponModel->getUserCouponIds($userInfo['user_id']);