good
This commit is contained in:
@@ -134,12 +134,11 @@ func GenerateJwtTokenUint64(AccessSecret uint64, accessExpire, nowSec int64, use
|
||||
claims["exp"] = nowSec + accessExpire
|
||||
claims["iat"] = nowSec
|
||||
|
||||
if userid == 0 && guestid == 0 {
|
||||
err := errors.New("userid and guestid cannot be 0 at the same time")
|
||||
logx.Error(err)
|
||||
return "", err
|
||||
|
||||
}
|
||||
// if userid == 0 && guestid == 0 {
|
||||
// err := errors.New("userid and guestid cannot be 0 at the same time")
|
||||
// logx.Error(err)
|
||||
// return "", err
|
||||
// }
|
||||
claims["user_id"] = userid
|
||||
claims["guest_id"] = guestid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user