微信小程序接口更新

This commit is contained in:
devil_gong 2019-01-23 11:54:09 +08:00
parent 72a5b77756
commit 38c066ea8b

View File

@ -225,7 +225,7 @@ App({
success: (res) => {
if (res.code) {
wx.request({
url: $this.get_request_url('WechatUserAuth', 'user'),
url: $this.get_request_url('wechatuserauth', 'user'),
method: 'POST',
data: { authcode: res.code },
dataType: 'json',
@ -267,7 +267,7 @@ App({
var $this = this;
// 远程解密数据
wx.request({
url: $this.get_request_url('WechatUserInfo', 'user'),
url: $this.get_request_url('wechatuserinfo', 'user'),
method: 'POST',
data: { encrypted_data: auth_data.encryptedData, iv: auth_data.iv, openid: openid },
dataType: 'json',