政企超链接开始集成

This commit is contained in:
hoteas
2022-02-28 08:53:38 +08:00
parent 2a98f0dcad
commit 42f91d57ff
8 changed files with 158 additions and 58 deletions
+2 -1
View File
@@ -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