chengjie 7 년 전
부모
커밋
88a1db0ae6
3개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      app.js
  2. 5 2
      pages/main/index.js
  3. 1 1
      project.config.json

+ 1 - 1
app.js

@@ -12,7 +12,7 @@ App({
12 12
   },
13 13
   globalData: {
14 14
     Version: "1.0.0",
15
-    IsProduction: true,
15
+    IsProduction: false,
16 16
     ProgramID: 106,
17 17
     AppID: "wx313a8f2c0741efe1",
18 18
     ShareTitle:"赢在阅读起跑线",

+ 5 - 2
pages/main/index.js

@@ -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
       });

+ 1 - 1
project.config.json

@@ -1,7 +1,7 @@
1 1
 {
2 2
 	"description": "项目配置文件。",
3 3
 	"setting": {
4
-		"urlCheck": true,
4
+		"urlCheck": false,
5 5
 		"es6": true,
6 6
 		"postcss": true,
7 7
 		"minified": true,