Переглянути джерело

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 рік тому
батько
коміт
a94f1e0c61
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      services/user_label.go

+ 3 - 0
services/user_label.go

@@ -215,6 +215,9 @@ func ArticleHistoryUserLabelLogReduce(log models.CygxUserLabelLogRedis) (err err
 
 	articleId := log.SourceId
 	userId := log.UserId
+	if userId == 0 || articleId == 0 {
+		return
+	}
 	var source int
 	user, e := models.GetWxUserItemByUserId(userId)
 	if e != nil {