Skip to content

Commit

Permalink
增加循环判断控制
Browse files Browse the repository at this point in the history
  • Loading branch information
imldy committed Oct 9, 2021
1 parent eda9d7f commit 4dbdb1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gwa.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,10 @@ def cycle():
account = Account(conf[0].strip(), conf[1].strip())
client = Client()
gwa = GiWiFiWebAuth(account=account, client=client)
cycle()
args = sys.argv
while True:
cycle()
if "-d" in args:
time.sleep(int(args[2]))
else:
exit()

0 comments on commit 4dbdb1e

Please sign in to comment.