Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SunflowerAries committed Mar 11, 2021
1 parent 45a5cbb commit 9e1a80f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,22 @@ def check(self):
'https://zlapp.fudan.edu.cn/ncov/wap/fudan/get-info')
last_info = get_info.json()

print("◉上一次提交日期为:", last_info["d"]["oldInfo"]["date"])
print("◉上一次提交日期为:", last_info["d"]["info"]["date"])

position = last_info["d"]["oldInfo"]['geo_api_info']
position = last_info["d"]["info"]['geo_api_info']
position = json_loads(position)

print("◉上一次提交地址为:", position['formattedAddress'])
# print("◉上一次提交GPS为", position["position"])

today = time.strftime("%Y%m%d", time.localtime())

if last_info["d"]["oldInfo"]["date"] == today:
if last_info["d"]["info"]["date"] == today:
print("\n*******今日已提交*******")
self.close()
else:
print("\n\n*******未提交*******")
self.last_info = last_info["d"]["oldInfo"]
self.last_info = last_info["d"]["info"]

def checkin(self):
"""
Expand Down

0 comments on commit 9e1a80f

Please sign in to comment.