微信小程序接口更新
parent
72a5b77756
commit
38c066ea8b
|
|
@ -225,7 +225,7 @@ App({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
wx.request({
|
wx.request({
|
||||||
url: $this.get_request_url('WechatUserAuth', 'user'),
|
url: $this.get_request_url('wechatuserauth', 'user'),
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { authcode: res.code },
|
data: { authcode: res.code },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|
@ -267,7 +267,7 @@ App({
|
||||||
var $this = this;
|
var $this = this;
|
||||||
// 远程解密数据
|
// 远程解密数据
|
||||||
wx.request({
|
wx.request({
|
||||||
url: $this.get_request_url('WechatUserInfo', 'user'),
|
url: $this.get_request_url('wechatuserinfo', 'user'),
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { encrypted_data: auth_data.encryptedData, iv: auth_data.iv, openid: openid },
|
data: { encrypted_data: auth_data.encryptedData, iv: auth_data.iv, openid: openid },
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue