From 1b600a2277994d94e7c371dd47f324c68e9693b4 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Fri, 29 May 2026 21:13:48 +0800 Subject: [PATCH] VipService --- app/Services/VipService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,