升级gf与gtoken到最新版本,更新gf生成的model为最新版本

This commit is contained in:
yxh
2020-09-18 11:53:04 +08:00
parent 4fbecae513
commit 092db0cb2b
50 changed files with 1301 additions and 1055 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/util/gconv"
)
//跨域处理中间件
@@ -28,7 +29,7 @@ func Auth(r *ghttp.Request) {
adminId := user_service.GetLoginID(r)
//获取无需验证权限的用户id
for _, v := range service.NotCheckAuthAdminIds {
if v == adminId {
if gconv.Uint64(v) == adminId {
r.Middleware.Next()
return
}