From b4a762e16d713de71559f34b7cdd1fc9984af40f Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Mon, 27 Dec 2021 17:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=20=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.js | 2 +- pages/phonePassword/phonePassword.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/login/login.js b/pages/login/login.js index 321b524..905eaf0 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -284,7 +284,7 @@ Page({ const that = this wxBind((res)=>{ let params = { - openId: res.result.openid, + openId: encrypt(that.data.rsaPublicKey,res.result.openid), rsaPublicKey: that.data.rsaPublicKey } // 需要判断是否绑定过微信,再进行绑定请求 diff --git a/pages/phonePassword/phonePassword.js b/pages/phonePassword/phonePassword.js index 6aad426..06bcfa1 100644 --- a/pages/phonePassword/phonePassword.js +++ b/pages/phonePassword/phonePassword.js @@ -190,7 +190,7 @@ Page({ // 获取openid进行手机号和微信的绑定 wxBind((res)=>{ let params = { - openId: res.result.openid, + openId: encrypt(that.data.rsaPublicKey, res.result.openid), rsaPublicKey: that.data.rsaPublicKey } // 需要判断是否绑定过微信,再进行绑定请求