diff --git a/app/Controller/v3/CouponController.php b/app/Controller/v3/CouponController.php index a17b7ba..d82268a 100644 --- a/app/Controller/v3/CouponController.php +++ b/app/Controller/v3/CouponController.php @@ -90,7 +90,13 @@ class CouponController extends BaseController ->whereIn('state',OrderState::REFUND) ->exists(); if($newUserCheck){ - throw new ErrorCodeException(ErrorCode::COUPON_IS_NOT_NEW_USER,'',$userId); + return $this->result( + ErrorCode::COUPON_IS_NOT_NEW_USER, + [ + 'text'=>'关注懒族菜市微信公众号,更多精彩活动一手掌握!' + ], + '不是新用户无法领券' + ); } $res = $this->couponRecService->getAvailableList($userId,$receiveType); return $this->success($res);