|
@@ -108,11 +108,18 @@ func MyList(c *gin.Context) {
|
|
|
// GetNeedCommentAnonymousUserTips 获取是否 弹出让去设置头像 的提示框
|
|
|
func GetNeedCommentAnonymousUserTips(c *gin.Context) {
|
|
|
userinfo := userService.GetInfoByClaims(c)
|
|
|
+
|
|
|
+ // true 不弹框,false弹框
|
|
|
+ if userinfo.NickName != `` {
|
|
|
+ response.OkData("获取成功", true, c)
|
|
|
+ return
|
|
|
+ }
|
|
|
ok, err := yb_community_question.GetNeedCommentAnonymousUserTips(userinfo.UserID)
|
|
|
if err != nil {
|
|
|
response.FailMsg("获取失败", err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
response.OkData("获取成功", ok, c)
|
|
|
}
|
|
|
|