From 84b5d237df1cf63e87d7c330528b52771de46f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Wed, 6 Jul 2022 18:38:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BE=93=E5=87=BA=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AE=8C=E6=95=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloudfunctions/uni-id-co/module/login/login-by-alipay.js | 1 + .../cloudfunctions/uni-id-co/module/login/login-by-apple.js | 1 + .../cloudfunctions/uni-id-co/module/login/login-by-qq.js | 1 + .../cloudfunctions/uni-id-co/module/login/login-by-weixin.js | 1 + 4 files changed, 4 insertions(+) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-alipay.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-alipay.js index ef089aa..b74b54e 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-alipay.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-alipay.js @@ -38,6 +38,7 @@ module.exports = async function (params = {}) { try { getAlipayAccountResult = await alipayApi().code2Session(code) } catch (error) { + console.error(error) await this.middleware.uniIdLog({ success: false, type: LOG_TYPE.LOGIN diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-apple.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-apple.js index 265fde9..5f39e62 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-apple.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-apple.js @@ -44,6 +44,7 @@ module.exports = async function (params = {}) { try { verifyResult = await appleApi.verifyIdentityToken(identityToken) } catch (error) { + console.error(error) await this.middleware.uniIdLog({ success: false, type: LOG_TYPE.LOGIN diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-qq.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-qq.js index 2cd35b7..8af3aff 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-qq.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-qq.js @@ -73,6 +73,7 @@ module.exports = async function (params = {}) { accessToken }) } catch (error) { + console.error(error) await this.middleware.uniIdLog({ success: false, type: LOG_TYPE.LOGIN diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-weixin.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-weixin.js index 6b83d47..8e99a31 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-weixin.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-weixin.js @@ -57,6 +57,7 @@ module.exports = async function (params = {}) { try { getWeixinAccountResult = await weixinApi[apiName](code) } catch (error) { + console.error(error) await this.middleware.uniIdLog({ success: false, type: LOG_TYPE.LOGIN -- GitLab