去除调试代码并完成多用户签到 #3
This commit is contained in:
parent
4bb049cb2b
commit
8d4dd91f61
8
main.py
8
main.py
|
@ -9,8 +9,8 @@ sign='https://n.cg.163.com/api/v2/sign-today'
|
||||||
current='https://n.cg.163.com/api/v2/client-settings/@current'
|
current='https://n.cg.163.com/api/v2/client-settings/@current'
|
||||||
|
|
||||||
cookies=sys.argv[1].split('#')
|
cookies=sys.argv[1].split('#')
|
||||||
teleid="" #sys.argv[2]
|
teleid=sys.argv[2]
|
||||||
teletoken="" #sys.argv[3]
|
teletoken=sys.argv[3]
|
||||||
sckey=sys.argv[4]
|
sckey=sys.argv[4]
|
||||||
if cookies=="":
|
if cookies=="":
|
||||||
print('[网易云游戏自动签到]未设置cookie,正在退出……')
|
print('[网易云游戏自动签到]未设置cookie,正在退出……')
|
||||||
|
@ -99,7 +99,7 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
sign=signin(sign,cookie)
|
sign=signin(sign,cookie)
|
||||||
except:
|
except:
|
||||||
message='第{}个账号签到失败,回显状态码为{}\n具体错误信息如下:\n{}'.format(cookies.index(i)+1,sign.status_code,sign.text)
|
message='第{}个账号签到失败,回显状态码为{},具体错误信息如下:{}'.format(cookies.index(i)+1,sign.status_code,sign.text)
|
||||||
failure.append(cookie)
|
failure.append(cookie)
|
||||||
msg.append(message)
|
msg.append(message)
|
||||||
signerror=True
|
signerror=True
|
||||||
|
@ -109,7 +109,7 @@ if __name__ == "__main__":
|
||||||
success.append(cookie)
|
success.append(cookie)
|
||||||
msg.append(message)
|
msg.append(message)
|
||||||
elif(signerror!=True):
|
elif(signerror!=True):
|
||||||
message='第{}个账号签到失败,回显状态码为{}\n具体错误信息如下:\n{}'.format(cookies.index(i)+1,sign.status_code,sign.text)
|
message='第{}个账号签到失败,回显状态码为{},具体错误信息如下:{}'.format(cookies.index(i)+1,sign.status_code,sign.text)
|
||||||
failure.append(cookie)
|
failure.append(cookie)
|
||||||
msg.append(message)
|
msg.append(message)
|
||||||
outputmsg=str(msg).replace("[",'').replace(']','').replace(',','<br>').replace('\'','')
|
outputmsg=str(msg).replace("[",'').replace(']','').replace(',','<br>').replace('\'','')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user