From 420eb73c72b8fc4c1f0f737b9c380e299684e8a8 Mon Sep 17 00:00:00 2001 From: "LinskRuis.32" Date: Thu, 11 Jun 2020 17:17:16 +0800 Subject: [PATCH] wt --- service/mgoService/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/mgoService/info.go b/service/mgoService/info.go index 0764f97..1978c5b 100644 --- a/service/mgoService/info.go +++ b/service/mgoService/info.go @@ -42,7 +42,7 @@ func GetCurrentUserInfo(c *macaron.Context) *models.MgoUserInfo { if tkm == nil { return nil } - id := (*tkm)["id"].(string) + id := (*tkm)["xid"].(string) if len(id) <= 0 { return nil }