Add tool dir.

This commit is contained in:
zicla
2019-04-26 03:08:22 +08:00
parent aed1ee2001
commit c5de9ce9eb
28 changed files with 23 additions and 22 deletions

View File

@ -5,7 +5,7 @@ import (
"tank/code/config"
"tank/code/logger"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
)
type IBean interface {
@ -46,6 +46,7 @@ func (this *Bean) PanicError(err error) {
//能找到一个user就找到一个
func (this *Bean) findUser(writer http.ResponseWriter, request *http.Request) *User {
//验证用户是否已经登录。
//登录身份有效期以数据库中记录的为准
sessionId := util.GetSessionUuidFromRequest(request, config.COOKIE_AUTH_KEY)