diff --git a/app/Services/VipService.php b/app/Services/VipService.php index 1cc8af1f..48d3ae45 100644 --- a/app/Services/VipService.php +++ b/app/Services/VipService.php @@ -61,7 +61,9 @@ class VipService $openid = 'oU7xS5UspzVvpPEBqKZuW6N9WXDg'; } if (!$openid) { - throw new BizException('未找到用户的微信授权信息, 无法使用微信支付'); + $exception = new BizException('未找到用户的微信授权信息, 无法使用微信支付'); + $exception->status(401); + throw $exception; } $params = [ 'body' => app_settings('app.app_name').'-会员-' . $userVip->name,