升级gtoken,service与model整合

This commit is contained in:
yxh
2020-03-11 23:41:38 +08:00
parent 530266720d
commit 5d7622f81f
28 changed files with 1361 additions and 1057 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"gfast/app/service/admin/auth_service"
"gfast/app/service/admin/user_service"
"gfast/library/response"
"gfast/library/utils"
"gfast/library/service"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/util/gconv"
@@ -25,7 +25,7 @@ func (c *Index) Index(r *ghttp.Request) {
userId := userEntity.Id
delete(userInfo, "user_password")
//获取无需验证权限的用户id
for _, v := range utils.NotCheckAuthAdminIds {
for _, v := range service.NotCheckAuthAdminIds {
if v == userId {
isSuperAdmin = true
break