Переглянути джерело

Merge branch 'feature/luojunhui/delete-article-improve' of Server/LongArticleTaskServer into master

luojunhui 3 тижнів тому
батько
коміт
879a890461
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      app/domains/monitor_tasks/gzh_article_monitor.py

+ 3 - 0
app/domains/monitor_tasks/gzh_article_monitor.py

@@ -290,6 +290,9 @@ class InnerGzhArticlesMonitor(MonitorConst):
             response_code = response["code"]
             if response_code == self.ARTICLE_ILLEGAL_CODE:
                 error_detail = response.get("msg")
+                if error_detail == '此内容因违规无法查看: 此内容因违规无法查看 由用户投诉并经平台审核,存在非真人自动化创作行为,查看对应规则 微信公众平台运营中心':
+                    return
+
                 query = """
                     INSERT IGNORE INTO illegal_articles
                         (gh_id, account_name, title, wx_sn, publish_date, illegal_reason)