mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-23 12:19:20 +08:00
优化CloseSess的调用方式
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user