@@ -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, "&")