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 */