Commit bc1af3dc authored by lixiaofang's avatar lixiaofang

hh

parent ce8050dc
This diff is collapsed.
...@@ -25,15 +25,16 @@ def index_first(): ...@@ -25,15 +25,16 @@ def index_first():
def login(cookies,user,pwd): def login(cookies,user,pwd):
post_dict={ post_dict={
'account_type':user, 'account_type':2,
'pwd':pwd 'pwd':pwd,
'email':user
} }
response=requests.post( response = requests.post(
url=login_url, url=login_url,
data=post_dict, data=post_dict,
cookies=cookies cookies=cookies
) )
# print(response.text,'url') print(response.text, 'url')
def reply(cookies_get,id,content): def reply(cookies_get,id,content):
...@@ -64,7 +65,7 @@ def get_data(numtime): ...@@ -64,7 +65,7 @@ def get_data(numtime):
cursor.execute("SELECT id FROM topic WHERE create_time LIKE '%%%%%s%%%%' " %numtime) cursor.execute("SELECT id FROM topic WHERE create_time LIKE '%%%%%s%%%%' " %numtime)
data = cursor.fetchall() data = cursor.fetchall()
user_id = list(data) user_id = list(data)
# print("Database version : %s " % user_id) print("Database version : %s " % user_id)
db.close() db.close()
return user_id return user_id
......
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