Rename tool to util.

This commit is contained in:
zicla
2019-04-26 03:01:40 +08:00
parent ce84a9c9f0
commit aed1ee2001
28 changed files with 104 additions and 104 deletions

View File

@ -5,7 +5,7 @@ import (
"tank/code/config"
"tank/code/logger"
"tank/code/result"
"tank/code/tool"
"tank/code/util"
)
type IBean interface {
@ -48,7 +48,7 @@ func (this *Bean) findUser(writer http.ResponseWriter, request *http.Request) *U
//验证用户是否已经登录。
//登录身份有效期以数据库中记录的为准
sessionId := tool.GetSessionUuidFromRequest(request, config.COOKIE_AUTH_KEY)
sessionId := util.GetSessionUuidFromRequest(request, config.COOKIE_AUTH_KEY)
if sessionId == "" {
return nil
}