|
|
@@ -55,7 +55,6 @@ Page({
|
|
55
|
55
|
},
|
|
56
|
56
|
getAccredit: function () {
|
|
57
|
57
|
if (!this.data.IsAccredit) {
|
|
58
|
|
-
|
|
59
|
58
|
var that = this;
|
|
60
|
59
|
wx.getSetting({
|
|
61
|
60
|
success(res) {
|
|
|
@@ -85,7 +84,7 @@ Page({
|
|
85
|
84
|
wx.login({
|
|
86
|
85
|
success: function (res0) {
|
|
87
|
86
|
wx.getUserInfo({
|
|
88
|
|
- withCredentials: false,
|
|
|
87
|
+ withCredentials: true,
|
|
89
|
88
|
success: function (res) {
|
|
90
|
89
|
app.globalData.userInfo = res.userInfo;
|
|
91
|
90
|
|
|
|
@@ -99,6 +98,8 @@ Page({
|
|
99
|
98
|
});
|
|
100
|
99
|
|
|
101
|
100
|
app.globalData.userInfo.Code = res0.code;
|
|
|
101
|
+ app.globalData.userInfo.iv = res.iv;
|
|
|
102
|
+ app.globalData.userInfo.encryptedData = res.encryptedData;
|
|
102
|
103
|
that.login(app.globalData.userInfo);
|
|
103
|
104
|
|
|
104
|
105
|
},
|
|
|
@@ -142,6 +143,8 @@ Page({
|
|
142
|
143
|
UserSource: app.globalData.userSource,
|
|
143
|
144
|
SourceID: app.globalData.SourceID,
|
|
144
|
145
|
LastUserSource: app.globalData.userSource,
|
|
|
146
|
+ encryptedData: param.encryptedData,
|
|
|
147
|
+ iv: param.iv,
|
|
145
|
148
|
}, function (data) {
|
|
146
|
149
|
|
|
147
|
150
|
});
|