csx 4 lat temu
rodzic
commit
5b68ceef1e

+ 1 - 1
conf/app.conf Wyświetl plik

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

+ 2 - 2
controllers/verify_token_controller.go Wyświetl plik

@@ -344,9 +344,10 @@ func (this *VerifyTokenController) GetAdminUserAllInfo(mobile string) (map[strin
344 344
 			appJSONs[strconv.Itoa(app.Id)] = appJSONStr
345 345
 			appIds = append(appIds, strconv.Itoa(app.Id))
346 346
 			app_to_org_ids[strconv.Itoa(app.Id)] = strconv.Itoa(org.Id)
347
-
347
+			fmt.Println(app.AppType)
348 348
 			if adminUser.IsSuperAdmin {
349 349
 				urlfors, purviews, getPurviewErr := service.GetSuperAdminUsersPurviewTreeAndUrlfors(app.AppType)
350
+
350 351
 				if getPurviewErr != nil {
351 352
 					utils.ErrorLog("数据错误:查找超级管理员的类型为%v的应用的权限时错误:%v", app.AppType, getPurviewErr)
352 353
 					return nil, &enums.SGJError{Code: enums.ErrorCodeDataException}
@@ -368,7 +369,6 @@ func (this *VerifyTokenController) GetAdminUserAllInfo(mobile string) (map[strin
368 369
 					app_purview_urls[strconv.Itoa(app.Id)] = string(urlforJSON_b)
369 370
 				}
370 371
 			}
371
-
372 372
 			appRole, getAppRoleErr := service.GetAppRole(adminUser.Id, org.Id, app.Id)
373 373
 			if getAppRoleErr != nil {
374 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 Wyświetl plik

@@ -21,7 +21,7 @@
21 21
         (function() {
22 22
           var hm = document.createElement("script");
23 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 25
           s.parentNode.insertBefore(hm, s);
26 26
         })();
27 27
         </script>
@@ -215,7 +215,7 @@
215 215
                 open_scrm: open_scrm,
216 216
                 open_mall: open_mall,
217 217
             }
218
-            
218
+
219 219
             $.showLoading("加载中");
220 220
 
221 221
             $.ajax({
@@ -253,13 +253,13 @@
253 253
         });
254 254
     });
255 255
 
256
-    function getCookie(name) { 
256
+    function getCookie(name) {
257 257
         var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
258 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 264
     function checkInfoFull() {
265 265
         if ($("#org_name").val().length == 0) {
@@ -286,4 +286,4 @@
286 286
     }
287 287
 </script>
288 288
 
289
-</html>
289
+</html>