提交 2d3ceac6 编写于 作者: ToTensor's avatar ToTensor

send topic success

上级 aa93b544
此差异已折叠。
...@@ -16,4 +16,4 @@ if __name__ == "__main__": ...@@ -16,4 +16,4 @@ if __name__ == "__main__":
"communityId": 3824, "communityId": 3824,
"loginUserName": "BBS_Assistant" "loginUserName": "BBS_Assistant"
} }
# send_topic(web_url, book_dir, mapping_path, send_topic_request_param) send_topic(web_url, book_dir, mapping_path, send_topic_request_param)
\ No newline at end of file \ No newline at end of file
...@@ -97,13 +97,11 @@ def send_topic(web_url, book_dir, mapping_path, send_topic_request_param): ...@@ -97,13 +97,11 @@ def send_topic(web_url, book_dir, mapping_path, send_topic_request_param):
print(topic_title) print(topic_title)
send_topic_request_param = { send_topic_request_param['type'] = 'long_text'
"type": "long_text", send_topic_request_param['content'] = 'topic_content'
"content": topic_content, send_topic_request_param['topicTitle'] = 'topic_title'
"topicTitle": topic_title, send_topic_request_param['mdContent'] = 'topic_content'
"mdContent": topic_content, send_topic_request_param['bizNo'] = 'ebook'
"bizNo": "ebook"
}
if chapter_code_mapping.get(file) is None: if chapter_code_mapping.get(file) is None:
resp = post(request_url, send_topic_request_param) resp = post(request_url, send_topic_request_param)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册