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