瀏覽代碼

修改匿名用户昵称

xiexiaoyuan 2 年之前
父節點
當前提交
f91a40b2af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/comment/comment.go

+ 1 - 1
services/comment/comment.go

@@ -284,7 +284,7 @@ func List(user user.UserInfo,  reportId, reportChapterId, oldReportId, oldReport
 		tmp := new(response.RespCommentItem)
 		tmp.CommentId = v.CommentId
 		tmp.UserId = v.UserId
-		tmp.UserName = "匿名用户"+strconv.Itoa(int(v.CommentId+v.UserId))
+		tmp.UserName = "匿名用户"+strconv.Itoa(int(3333+v.UserId))
 		tmp.UserImgUrl = utils.DEFAULT_HONGZE_USER_LOGO
 		if info, ok := usersMap[v.UserId]; ok && v.IsShowName == 1{
 			tmp.UserName = info.NickName