Update main.py

This commit is contained in:
wangmanv2 2020-12-18 09:20:44 +08:00 committed by GitHub
parent 859d200b2f
commit b0a31b2bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,8 +90,8 @@ if __name__ == "__main__":
cookie = i
autherror = False
signerror = False
sign_return = NULL
me = NULL
sign_return = None
me = None
try:
me = getme(current, cookie)
except:
@ -115,7 +115,7 @@ if __name__ == "__main__":
msg.append(message)
signerror = True
if sign.status_code == 200:
if sign_return.status_code == 200:
message = '{}个账号签到成功!'.format(cookies.index(i) + 1)
success.append(cookie)
msg.append(message)