浏览代码

策略平台阅读时间处理八个小时的时差

xingzai 2 年之前
父节点
当前提交
fb2eac918d
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      services/article.go
  2. 1 1
      utils/config.go

+ 2 - 1
services/article.go

@@ -1075,7 +1075,8 @@ func GetCeLueArticlePv(cont context.Context) (err error) {
 			item.CompanyName = v.CompanyName.RealName
 		}
 		item.CreateDateApi = time.Now()
-		item.CreateTime = v.CreateDate
+		t1, _ := time.Parse("2006-01-02T15:04:05Z", v.CreateDate)
+		item.CreateTime = t1.Add(+time.Hour * 8).Format(utils.FormatDateTime)
 		count, err := models.GetCeLueArticleCountById(v.CelueHistoryId)
 		if err != nil && err.Error() != utils.ErrNoRow() {
 			return err

+ 1 - 1
utils/config.go

@@ -145,7 +145,7 @@ func init() {
 		WxMsgTemplateIdAskMsg = "PaoDanHGlt1kFw5q-4_ipJSwO3FyZpxSSNg4rwB7YCk"
 		WxMsgTemplateIdAskMsgMobile = ""
 		ActSendMsgMobile = "15618524605"
-		ArticleTaskClassMobile = "15557270714,18767183922,15216736473,15000123056,18701809782,17706316791"
+		ArticleTaskClassMobile = "15557270714,18767183922,15216736473,15000123056,18701809782,17706316791,18652179672"
 
 	} else {
 		WxAppId = "wxcc32b61f96720d2f"