From 60c2b28cba96a46bdb10b5561216ae4f53e3eab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 16 Dec 2022 16:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E4=BC=98=E5=8C=96=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=92=8C?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E7=99=BB=E5=BD=95=E6=97=B6=E5=80=99?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E6=8A=9B=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/oauth/storage/MiniProgram.php | 2 +- crmeb/crmeb/services/oauth/storage/Wechat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/crmeb/services/oauth/storage/MiniProgram.php b/crmeb/crmeb/services/oauth/storage/MiniProgram.php index a665d3eb6..33ef34396 100644 --- a/crmeb/crmeb/services/oauth/storage/MiniProgram.php +++ b/crmeb/crmeb/services/oauth/storage/MiniProgram.php @@ -55,7 +55,7 @@ class MiniProgram extends BaseStorage implements OAuthInterface $userInfoCong = MiniProgramService::getUserInfo($code); $session_key = $userInfoCong['session_key']; } catch (\Exception $e) { - throw new OAuthException(410076); + throw new OAuthException($e->getMessage()); } if (!isset($userInfoCong['openid'])) { diff --git a/crmeb/crmeb/services/oauth/storage/Wechat.php b/crmeb/crmeb/services/oauth/storage/Wechat.php index fc277d4b5..38d2b3c5c 100644 --- a/crmeb/crmeb/services/oauth/storage/Wechat.php +++ b/crmeb/crmeb/services/oauth/storage/Wechat.php @@ -59,7 +59,7 @@ class Wechat extends BaseStorage implements OAuthInterface try { $wechatInfo = WechatService::oauth2Service()->oauth(); } catch (\Throwable $e) { - throw new OAuthException(410131); + throw new OAuthException($e->getMessage()); } } else { /** @var WechatOpenService $service */