Commit 392c7d13 by biao
parents 8a203e50 94ec58eb
......@@ -85,9 +85,19 @@ Page({
this.userInfoReadyCallback(res)
}
wx.request({
url: app.url + 'ajax_get_unionid.php',
data: {
openid: config.openId,
iv: res.iv,
encryptedData: res.encryptedData
},
success(resp) {
if (resp.data.status == 'OK') {
wx.request({
url: 'https://www.koala-online.cn/compass/if/ajax_leader_user_register.php',
data: {
unionId: config.unionId,
unionId: resp.data.result.unionId,
openId: config.openId,
headerImg: app.globalData.userInfo.avatarUrl,
qrId: this.data.qrId,
......@@ -105,6 +115,9 @@ Page({
complete: function (res) { },
})
}
}
});
}
})
......
......@@ -198,9 +198,19 @@ Page({
return
}
wx.request({
url: app.url + 'ajax_get_unionid.php',
data: {
openid: config.openId,
iv: res.iv,
encryptedData: res.encryptedData
},
success(resp) {
if (resp.data.status == 'OK') {
wx.request({
url: app.url + 'ajax_social_user_register1.php',
data: {
unionId: config.unionId,
unionId: resp.data.result.unionId,
openId: config.openId,
name: that.data.name,
mobile: that.data.mobile,
......@@ -230,6 +240,9 @@ Page({
},
complete: function (res) { },
})
}
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment