diff --git a/pages/login/index.vue b/pages/login/index.vue index ecd44aa..70383c8 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -176,8 +176,11 @@ export default { this.$store.dispatch("contact/getSentFriendApplications"); this.$store.dispatch("contact/getRecvGroupApplications"); this.$store.dispatch("contact/getSentGroupApplications"); - // await getSMSCodeFromOa(this.loginInfo.phoneNumber); - // const info = await loginOaByPhone(this.loginInfo.phoneNumber) + // oa登录,这个登录主要用于调用oa的API,登录失败也不影响核心的IM功能 + getSMSCodeFromOa(this.loginInfo.phoneNumber).then(_ => { + const result = loginOaByPhone(this.loginInfo.phoneNumber); + console.log(result) + }); this.loginInfo.password = ""; this.loading = false; uni.switchTab({ diff --git a/util/imCommon.js b/util/imCommon.js index 5a40c6d..d2ed7be 100644 --- a/util/imCommon.js +++ b/util/imCommon.js @@ -305,7 +305,6 @@ export const tipMessaggeFormat = (msg, currentUserID) => { case MessageType.RevokeMessage: try { const revokeDetails = JSON.parse(msg.notificationElem.detail); - console.log(revokeDetails, '撤回消息') const revokerID = revokeDetails.revokerID; const revokerName = revokeDetails.revokerNickname || "未知用户";