From 0a57cfeef6bdcf02f8f808c264cf5a60ed680ffd Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 23 Nov 2022 09:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/home.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/home.go b/routers/home.go index 56c86f6b1..11fa510f5 100755 --- a/routers/home.go +++ b/routers/home.go @@ -829,7 +829,8 @@ func RecommendHomeInfo(ctx *context.Context) { userIntId, _ := strconv.Atoi(userId) user, err := models.GetUserByID(int64(userIntId)) if err == nil { - amap["name"] = user.FullName + amap["name"] = user.Name + amap["fullname"] = user.FullName amap["detail"] = user.Description amap["avatar"] = user.AvatarLink() }