【bug】 微信授权登录
This commit is contained in:
@@ -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
|
||||
}
|
||||
// 需要判断是否绑定过微信,再进行绑定请求
|
||||
|
||||
@@ -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
|
||||
}
|
||||
// 需要判断是否绑定过微信,再进行绑定请求
|
||||
|
||||
Reference in New Issue
Block a user