xingzai пре 1 година
родитељ
комит
16a15e7149
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/yanxuan_special.go

+ 1 - 1
controllers/yanxuan_special.go

@@ -808,7 +808,7 @@ func (this *YanxuanSpecialController) Follow() {
 			br.ErrMsg = "获取失败, Err:" + err.Error()
 			return
 		}
-		if followCount == 0 {
+		if followCount == 0 && user.UserId > 0 {
 			item := models.CygxYanxuanSpecialFollow{
 				UserId:           user.UserId,
 				FollowUserId:     req.FollowUserId,