浏览代码

no message

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()
 			br.ErrMsg = "获取失败, Err:" + err.Error()
 			return
 			return
 		}
 		}
-		if followCount == 0 {
+		if followCount == 0 && user.UserId > 0 {
 			item := models.CygxYanxuanSpecialFollow{
 			item := models.CygxYanxuanSpecialFollow{
 				UserId:           user.UserId,
 				UserId:           user.UserId,
 				FollowUserId:     req.FollowUserId,
 				FollowUserId:     req.FollowUserId,