From 96fddcd0f94cf562f604709928d3debac9bbe13e Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 21 Jun 2022 23:56:10 +0800 Subject: [PATCH] [fix] processGetURL session expired --- xfs/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfs/process.go b/xfs/process.go index ee8f28e3..401b67a1 100644 --- a/xfs/process.go +++ b/xfs/process.go @@ -152,7 +152,7 @@ func processGetURL(process *gou.Process) interface{} { claims := helper.JwtValidate(token) userID, err := session.Global().ID(claims.SID).Get("user_id") - if err != nil || userID == "" { + if err != nil || userID == nil { exception.New("session expired", 403).Throw() }