Преглед изворни кода

公众号违规报警-bugfix

luojunhui пре 4 дана
родитељ
комит
14eda40100
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/domains/monitor_tasks/gzh_article_monitor.py

+ 1 - 1
app/domains/monitor_tasks/gzh_article_monitor.py

@@ -288,7 +288,7 @@ class InnerGzhArticlesMonitor(MonitorConst):
             response = await get_article_detail(url, is_cache=False)
             response_code = response["code"]
             if response_code == self.ARTICLE_ILLEGAL_CODE:
-                error_detail = article.get("msg")
+                error_detail = response.get("msg")
                 query = """
                     INSERT IGNORE INTO illegal_articles
                         (gh_id, account_name, title, wx_sn, publish_date, illegal_reason)