提交 84b5d237 编写于 作者: 雪洛's avatar 雪洛

feat: 输出三方账号完整错误

上级 08719a9b
...@@ -38,6 +38,7 @@ module.exports = async function (params = {}) { ...@@ -38,6 +38,7 @@ module.exports = async function (params = {}) {
try { try {
getAlipayAccountResult = await alipayApi().code2Session(code) getAlipayAccountResult = await alipayApi().code2Session(code)
} catch (error) { } catch (error) {
console.error(error)
await this.middleware.uniIdLog({ await this.middleware.uniIdLog({
success: false, success: false,
type: LOG_TYPE.LOGIN type: LOG_TYPE.LOGIN
......
...@@ -44,6 +44,7 @@ module.exports = async function (params = {}) { ...@@ -44,6 +44,7 @@ module.exports = async function (params = {}) {
try { try {
verifyResult = await appleApi.verifyIdentityToken(identityToken) verifyResult = await appleApi.verifyIdentityToken(identityToken)
} catch (error) { } catch (error) {
console.error(error)
await this.middleware.uniIdLog({ await this.middleware.uniIdLog({
success: false, success: false,
type: LOG_TYPE.LOGIN type: LOG_TYPE.LOGIN
......
...@@ -73,6 +73,7 @@ module.exports = async function (params = {}) { ...@@ -73,6 +73,7 @@ module.exports = async function (params = {}) {
accessToken accessToken
}) })
} catch (error) { } catch (error) {
console.error(error)
await this.middleware.uniIdLog({ await this.middleware.uniIdLog({
success: false, success: false,
type: LOG_TYPE.LOGIN type: LOG_TYPE.LOGIN
......
...@@ -57,6 +57,7 @@ module.exports = async function (params = {}) { ...@@ -57,6 +57,7 @@ module.exports = async function (params = {}) {
try { try {
getWeixinAccountResult = await weixinApi[apiName](code) getWeixinAccountResult = await weixinApi[apiName](code)
} catch (error) { } catch (error) {
console.error(error)
await this.middleware.uniIdLog({ await this.middleware.uniIdLog({
success: false, success: false,
type: LOG_TYPE.LOGIN type: LOG_TYPE.LOGIN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册