mirror of https://github.com/bjdgyc/anylink.git
优化CloseSess的调用方式
This commit is contained in:
parent
2bc2ade5d8
commit
5ef13b1bff
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue