Эх сурвалжийг харах

Merge branch 'api_fix' into debug

zwxi 6 сар өмнө
parent
commit
e9258a4bdd

+ 3 - 1
controllers/base_auth.go

@@ -209,7 +209,9 @@ func (c *BaseAuthController) Prepare() {
 			}
 			var api string
 			for _, v := range list {
-				api += v.Api + "&"
+				if v.Api != "" {
+					api += v.Api + "&"
+				}
 			}
 			//处理uri请求,去除前缀和参数
 			api = strings.TrimRight(api, "&")