zhangchuanxing hai 1 día
pai
achega
6fd23097e0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      services/article_history.go

+ 3 - 0
services/article_history.go

@@ -85,6 +85,9 @@ func ArticleHistory(articleId int, user *models.WxUserItem) (err error) {
 
 // 记录用户文章浏览记录带时长
 func ArticleHistoryStopTime(articleId, stopTime, outType int, user *models.WxUserItem) (err error) {
+	if user.CompanyId == 1 {
+		return
+	}
 	defer func() {
 		if err != nil {
 			go utils.SendAlarmMsg(fmt.Sprint("记录用户文章浏览记录带时长,失败 ,articleId", articleId, "uid", user.UserId, err.Error()), 2)