csx 4 years ago
parent
commit
5b68ceef1e
3 changed files with 11 additions and 11 deletions
  1. 1 1
      conf/app.conf
  2. 2 2
      controllers/verify_token_controller.go
  3. 8 8
      views/mobile_site/create_org.html

+ 1 - 1
conf/app.conf View File

125
 qiniu_secretkey = DmZSp_Bmnp-9aUB7xUvoyViZpzmx1Rs2RL69GvlW
125
 qiniu_secretkey = DmZSp_Bmnp-9aUB7xUvoyViZpzmx1Rs2RL69GvlW
126
 qiniu_domain = https://images.shengws.com/
126
 qiniu_domain = https://images.shengws.com/
127
 
127
 
128
-redishost = 120.77.235.13
128
+redishost = 127.0.0.1
129
 redisport = 6379
129
 redisport = 6379
130
 redispasswrod = syh@#$%123456!
130
 redispasswrod = syh@#$%123456!
131
 redisdb = 0
131
 redisdb = 0

+ 2 - 2
controllers/verify_token_controller.go View File

344
 			appJSONs[strconv.Itoa(app.Id)] = appJSONStr
344
 			appJSONs[strconv.Itoa(app.Id)] = appJSONStr
345
 			appIds = append(appIds, strconv.Itoa(app.Id))
345
 			appIds = append(appIds, strconv.Itoa(app.Id))
346
 			app_to_org_ids[strconv.Itoa(app.Id)] = strconv.Itoa(org.Id)
346
 			app_to_org_ids[strconv.Itoa(app.Id)] = strconv.Itoa(org.Id)
347
-
347
+			fmt.Println(app.AppType)
348
 			if adminUser.IsSuperAdmin {
348
 			if adminUser.IsSuperAdmin {
349
 				urlfors, purviews, getPurviewErr := service.GetSuperAdminUsersPurviewTreeAndUrlfors(app.AppType)
349
 				urlfors, purviews, getPurviewErr := service.GetSuperAdminUsersPurviewTreeAndUrlfors(app.AppType)
350
+
350
 				if getPurviewErr != nil {
351
 				if getPurviewErr != nil {
351
 					utils.ErrorLog("数据错误:查找超级管理员的类型为%v的应用的权限时错误:%v", app.AppType, getPurviewErr)
352
 					utils.ErrorLog("数据错误:查找超级管理员的类型为%v的应用的权限时错误:%v", app.AppType, getPurviewErr)
352
 					return nil, &enums.SGJError{Code: enums.ErrorCodeDataException}
353
 					return nil, &enums.SGJError{Code: enums.ErrorCodeDataException}
368
 					app_purview_urls[strconv.Itoa(app.Id)] = string(urlforJSON_b)
369
 					app_purview_urls[strconv.Itoa(app.Id)] = string(urlforJSON_b)
369
 				}
370
 				}
370
 			}
371
 			}
371
-
372
 			appRole, getAppRoleErr := service.GetAppRole(adminUser.Id, org.Id, app.Id)
372
 			appRole, getAppRoleErr := service.GetAppRole(adminUser.Id, org.Id, app.Id)
373
 			if getAppRoleErr != nil {
373
 			if getAppRoleErr != nil {
374
 				utils.ErrorLog("数据错误:查找id=%v,orgid=%v,appid=%v的用户信息时失败:%v", adminUser.Id, org.Id, app.Id, getAppRoleErr)
374
 				utils.ErrorLog("数据错误:查找id=%v,orgid=%v,appid=%v的用户信息时失败:%v", adminUser.Id, org.Id, app.Id, getAppRoleErr)

+ 8 - 8
views/mobile_site/create_org.html View File

21
         (function() {
21
         (function() {
22
           var hm = document.createElement("script");
22
           var hm = document.createElement("script");
23
           hm.src = "https://hm.baidu.com/hm.js?7577c975fa7ae685efd61deb009d1b5b";
23
           hm.src = "https://hm.baidu.com/hm.js?7577c975fa7ae685efd61deb009d1b5b";
24
-          var s = document.getElementsByTagName("script")[0]; 
24
+          var s = document.getElementsByTagName("script")[0];
25
           s.parentNode.insertBefore(hm, s);
25
           s.parentNode.insertBefore(hm, s);
26
         })();
26
         })();
27
         </script>
27
         </script>
215
                 open_scrm: open_scrm,
215
                 open_scrm: open_scrm,
216
                 open_mall: open_mall,
216
                 open_mall: open_mall,
217
             }
217
             }
218
-            
218
+
219
             $.showLoading("加载中");
219
             $.showLoading("加载中");
220
 
220
 
221
             $.ajax({
221
             $.ajax({
253
         });
253
         });
254
     });
254
     });
255
 
255
 
256
-    function getCookie(name) { 
256
+    function getCookie(name) {
257
         var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
257
         var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
258
         if(arr=document.cookie.match(reg))
258
         if(arr=document.cookie.match(reg))
259
-            return unescape(arr[2]); 
260
-        else 
261
-            return null; 
262
-    } 
259
+            return unescape(arr[2]);
260
+        else
261
+            return null;
262
+    }
263
 
263
 
264
     function checkInfoFull() {
264
     function checkInfoFull() {
265
         if ($("#org_name").val().length == 0) {
265
         if ($("#org_name").val().length == 0) {
286
     }
286
     }
287
 </script>
287
 </script>
288
 
288
 
289
-</html>
289
+</html>