Skip to content

更加准确的云原神/云绝区零时间反馈 #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions cloudgames.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def sign_account(self) -> str:
else:
log.info('签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限')
ret_msg += '签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限\n'
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {data["data"]["play_card"]["short_msg"]},拥有米云币 {data["data"]["coin"]["coin_num"]} 枚'
new_data = http.get(url=setting.cloud_genshin_sgin, headers=self.headers).json()
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(new_data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {new_data["data"]["play_card"]["short_msg"]},拥有米云币 {new_data["data"]["coin"]["coin_num"]} 枚'
log.info(ret_msg)
elif data['retcode'] == -100:
ret_msg = "云原神token失效/防沉迷"
Expand Down Expand Up @@ -81,8 +82,9 @@ def sign_account(self) -> str:
else:
log.info('签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限')
ret_msg += '签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限\n'
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {data["data"]["play_card"]["short_msg"]},拥有邦邦点 {data["data"]["coin"]["coin_num"]} 个'
new_data = http.get(url=setting.cloud_zzz_sgin, headers=self.headers).json()
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(new_data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {new_data["data"]["play_card"]["short_msg"]},拥有邦邦点 {new_data["data"]["coin"]["coin_num"]} 个'
log.info(ret_msg)
elif data['retcode'] == -100:
ret_msg = "云绝区零token失效/防沉迷"
Expand Down
5 changes: 3 additions & 2 deletions os_cloudgames.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def sign_account(self) -> str:
else:
log.info('签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限')
ret_msg += '签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上限\n'
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {data["data"]["play_card"]["short_msg"]},拥有米云币 {data["data"]["coin"]["coin_num"]} 枚'
new_data = http.get(url=setting.cloud_genshin_sgin_os, headers=self.headers).json()
ret_msg += f'你当前拥有免费时长 {tools.time_conversion(int(new_data["data"]["free_time"]["free_time"]))} ,' \
f'畅玩卡状态为 {new_data["data"]["play_card"]["short_msg"]},拥有米云币 {new_data["data"]["coin"]["coin_num"]} 枚'
log.info(ret_msg)
elif data['retcode'] == -100:
ret_msg = "云原神token失效"
Expand Down