#80 20260305-bugfix(修复报警不带 msg)

병합
luojunhui Server/feature/luojunhui/20260305-illegal-article-bot 에서 Server/master 로 1 commits 를 머지했습니다 4 일 전
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)