优化CloseSess的调用方式

This commit is contained in:
lanrenwo 2022-11-08 12:22:58 +08:00
parent 2bc2ade5d8
commit 5ef13b1bff
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ func UserOnline(w http.ResponseWriter, r *http.Request) {
func UserOffline(w http.ResponseWriter, r *http.Request) { func UserOffline(w http.ResponseWriter, r *http.Request) {
_ = r.ParseForm() _ = r.ParseForm()
token := r.FormValue("token") token := r.FormValue("token")
sessdata.CloseSess(token, 4) sessdata.CloseSess(token, dbdata.UserLogoutAdmin)
RespSucess(w, nil) RespSucess(w, nil)
} }