Przeglądaj źródła

报警将时间戳修改为时间

luojunhui 4 miesięcy temu
rodzic
commit
da6aca1449
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      updatePublishedMsgDaily.py

+ 2 - 2
updatePublishedMsgDaily.py

@@ -623,7 +623,7 @@ def monitor():
         title = article[2]
         url = article[3]
         wx_sn = article[4]
-        publish_timestamp = article[5]
+        publish_date = article[5]
         try:
             response = spider.get_article_text(url, is_cache=False)
             response_code = response['code']
@@ -635,7 +635,7 @@ def monitor():
                         "accountName": account_name,
                         "title": title,
                         "wx_sn": str(wx_sn),
-                        "publish_date": publish_timestamp
+                        "publish_date": str(publish_date)
                     },
                     mention=False
                 )