政企超链接开始集成
This commit is contained in:
+2
-1
@@ -23,7 +23,8 @@ func main() {
|
||||
notNeedLogin := []string{"login", "test", "auth", "upload"} //不需要登录的操作
|
||||
//RESTfull接口适配
|
||||
appIns.SetConnectListener(func(context *hotime.Context) bool {
|
||||
if context.RouterString[0] == "admin" {
|
||||
|
||||
if len(context.RouterString) > 0 && context.RouterString[0] == "admin" {
|
||||
return true
|
||||
}
|
||||
//判断是否需要登录,不需要登录则直接执行mtd
|
||||
|
||||
Reference in New Issue
Block a user