|
@@ -325,7 +325,7 @@ def bind_crawler_task_to_publish_task(target_publish_task_id, crawler_task_name,
|
|
|
"publishTimeInterval": publish_task_detail_data.get("publishTimeInterval"),
|
|
|
"publishWindowEnd": publish_task_detail_data.get("publishWindowEnd"),
|
|
|
"publishWindowStart": publish_task_detail_data.get("publishWindowStart"),
|
|
|
- "wxContentInsert": publish_task_detail_data.get("wxContentInsert"),
|
|
|
+ "wxContentInsert": publish_task_detail_data.get("wxContentInsert"),
|
|
|
"wxVideoPublishAccountSetting": publish_task_detail_data.get("wxVideoPublishAccountSetting"),
|
|
|
"scoreJudgeFlag": publish_task_detail_data.get("scoreJudgeFlag"),
|
|
|
"scoreJudgeTasks": publish_task_detail_data.get("scoreJudgeTasks"),
|
|
@@ -363,3 +363,22 @@ def bind_crawler_task_to_publish_task(target_publish_task_id, crawler_task_name,
|
|
|
else:
|
|
|
return
|
|
|
|
|
|
+
|
|
|
+def delete_articles(gh_id, title):
|
|
|
+ """
|
|
|
+ 删除公众号文章
|
|
|
+ :param gh_id:
|
|
|
+ :param title:
|
|
|
+ :return:
|
|
|
+ """
|
|
|
+ url = "http://101.37.174.139:80/articleAudit/titleDangerFindDelete"
|
|
|
+
|
|
|
+ payload = {
|
|
|
+ "ghId": gh_id,
|
|
|
+ 'title': title
|
|
|
+ }
|
|
|
+ headers = {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ }
|
|
|
+ response = requests.request("POST", url, headers=headers, json=payload, timeout=600)
|
|
|
+ return response
|