Browse Source

非新用户提示

master
Lemon 5 years ago
parent
commit
9f6e84de96
  1. 8
      app/Controller/v3/CouponController.php

8
app/Controller/v3/CouponController.php

@ -90,12 +90,12 @@ class CouponController extends BaseController
->whereIn('state',OrderState::REFUND) ->whereIn('state',OrderState::REFUND)
->exists(); ->exists();
if($newUserCheck){ if($newUserCheck){
return $this->result(
ErrorCode::COUPON_IS_NOT_NEW_USER,
return $this->success(
[ [
'error' => true,
'error_text' => '不是新用户无法领券',
'text'=>'关注懒族菜市微信公众号,更多精彩活动一手掌握!' 'text'=>'关注懒族菜市微信公众号,更多精彩活动一手掌握!'
],
'不是新用户无法领券'
]
); );
} }
$res = $this->couponRecService->getAvailableList($userId,$receiveType); $res = $this->couponRecService->getAvailableList($userId,$receiveType);

Loading…
Cancel
Save