Skip to content

Commit

Permalink
增加延迟
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Mar 15, 2022
1 parent 149c316 commit 3562bff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def login_check(self, username, pwd='', countrycode='', ip=''):
return music
login_resp = music.login(username, pwd, countrycode)
if login_resp['code'] == 200:
time.sleep(3)
level_resp = music.user_level()
if level_resp['code'] == 301:
music.loginerror = str(login_resp['profile']['userId']) + ' 运行失败,请尝试删除云函数后重新部署'
Expand Down Expand Up @@ -599,7 +600,7 @@ def musician_task(self):
else:
print('回复删除失败')

time.sleep(5)
time.sleep(7)
mission_list = self.get_missions()
if len(mission_list) > 0:
for mission in mission_list:
Expand Down

0 comments on commit 3562bff

Please sign in to comment.