From a677d4da5fafc3f6a3ef206103fd2834a49288d5 Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Thu, 6 Jan 2022 17:55:37 +0800 Subject: [PATCH] Refactor code --- internal/api/friend/friend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/friend/friend.go b/internal/api/friend/friend.go index eb755879b..d6d960f24 100644 --- a/internal/api/friend/friend.go +++ b/internal/api/friend/friend.go @@ -383,6 +383,7 @@ func GetFriendList(c *gin.Context) { } resp := api.GetFriendListResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, FriendInfoList: RpcResp.FriendInfoList} + resp.FriendInfoList[0].CreateTime = resp.FriendInfoList[0].CreateTime / 100 resp.Data = jsonData.JsonDataList(resp.FriendInfoList) log.NewInfo(req.CommID.OperationID, "GetFriendList api return ", resp) c.JSON(http.StatusOK, resp)