Fix a fatal bug.

This commit is contained in:
zicla
2018-07-26 01:35:16 +08:00
parent 9e9e548026
commit ed72eeee2d
2 changed files with 9 additions and 0 deletions

View File

@ -273,7 +273,12 @@ func (this *MatterController) Crawl(writer http.ResponseWriter, request *http.Re
user := this.checkUser(writer, request)
if user.Role != USER_ROLE_ADMINISTRATOR {
userUuid = user.Uuid
} else {
if userUuid == "" {
userUuid = user.Uuid
}
}
user = this.userDao.CheckByUuid(userUuid)
puuid := request.FormValue("puuid")