xingzai 1 gadu atpakaļ
vecāks
revīzija
16a15e7149
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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,