[fix] processGetURL session expired

This commit is contained in:
Max 2022-06-21 23:56:10 +08:00
parent 886513f9ff
commit 96fddcd0f9

View file

@ -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()
}