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

send topic success

上级 aa93b544
此差异已折叠。
......@@ -16,4 +16,4 @@ if __name__ == "__main__":
"communityId": 3824,
"loginUserName": "BBS_Assistant"
}
# send_topic(web_url, book_dir, mapping_path, send_topic_request_param)
\ No newline at end of file
send_topic(web_url, book_dir, mapping_path, send_topic_request_param)
\ No newline at end of file
......@@ -97,13 +97,11 @@ def send_topic(web_url, book_dir, mapping_path, send_topic_request_param):
print(topic_title)
send_topic_request_param = {
"type": "long_text",
"content": topic_content,
"topicTitle": topic_title,
"mdContent": topic_content,
"bizNo": "ebook"
}
send_topic_request_param['type'] = 'long_text'
send_topic_request_param['content'] = 'topic_content'
send_topic_request_param['topicTitle'] = 'topic_title'
send_topic_request_param['mdContent'] = 'topic_content'
send_topic_request_param['bizNo'] = 'ebook'
if chapter_code_mapping.get(file) is None:
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.
先完成此消息的编辑!
想要评论请 注册