浏览代码

Merge branch 'ETA_1.3.4' into debug

zwxi 1 年之前
父节点
当前提交
0c60948752
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/base_auth.go

+ 2 - 2
controllers/base_auth.go

@@ -198,10 +198,10 @@ func (c *BaseAuthController) Prepare() {
 				}
 				var api string
 				for _, v := range list {
-					api += v.Api + ","
+					api += v.Api + "&"
 				}
 				//处理uri请求,去除前缀和参数
-				api = strings.TrimRight(api, ",")
+				api = strings.TrimRight(api, "&")
 				uri = strings.Replace(uri, "/adminapi", "", 1)
 				uris := strings.Split(uri, "?")
 				uri = uris[0]