mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
【程序目录】优化小程序和公众号登录时候的错误抛出
This commit is contained in:
parent
28f71af94f
commit
60c2b28cba
@ -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'])) {
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user