Im sry that i made a mistake #3

This commit is contained in:
Pesy Wu 2023-03-05 17:09:50 +08:00 committed by GitHub
parent 4b05becd53
commit 23ff16f36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ if __name__ == '__main__':
time.sleep(wait_time) time.sleep(wait_time)
wallet = r.get(WalletURL, headers=headers) wallet = r.get(WalletURL, headers=headers)
if wallet.text == {"data":null,"message":"登录已失效,请重新登录","retcode":-100}: if wallet.text == {"data":null,"message":"登录已失效,请重新登录","retcode":-100}:
print(f'当前登录已过期,请重新登陆!返回为:{wallet.text}' print(f'当前登录已过期,请重新登陆!返回为:{wallet.text}')
else: else:
print( print(
f"你当前拥有免费时长 {json.loads(wallet.text)['data']['free_time']['free_time']} 分钟,畅玩卡状态为 {json.loads(wallet.text)['data']['play_card']['short_msg']},拥有米云币 {json.loads(wallet.text)['data']['coin']['coin_num']}") f"你当前拥有免费时长 {json.loads(wallet.text)['data']['free_time']['free_time']} 分钟,畅玩卡状态为 {json.loads(wallet.text)['data']['play_card']['short_msg']},拥有米云币 {json.loads(wallet.text)['data']['coin']['coin_num']}")