Commit 2f0f31b7 authored by lixiaofang's avatar lixiaofang

add

parents f57c4a4f 117f004c
This diff is collapsed.
......@@ -139,7 +139,8 @@ def reply(cookies_get, id, content):
try:
post_dict = {
'topic_id': id,
'content': content
'content': content,
"type": 4
}
response = requests.post(url=auto_reply_url,
cookies=cookies_get,
......@@ -166,7 +167,7 @@ def time_now(minutest):
try:
now = datetime.datetime.now()
yes_time = now - datetime.timedelta(hours=minutest)
return yes_time,now
return yes_time, now
except:
return None
......
......@@ -16,7 +16,8 @@ def reply(id, content, user_id):
post_dict = {
'user_id': user_id,
'topic_id': id,
'content': content
'content': content,
"type": 4
}
response = requests.post(url=auto_reply_url,
data=post_dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment