mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-03 02:49:12 +08:00
优化些小的问题
This commit is contained in:
parent
010fe7d988
commit
dfd3ac996c
@ -39,10 +39,10 @@ class CloudGenshin:
|
||||
if data['retcode'] == 0:
|
||||
if len(data2['data']['list']) >= 1:
|
||||
log.info('签到成功,已获得15分钟免费时长')
|
||||
ret_msg = f'签到成功,已获得15分钟免费时长\n'
|
||||
ret_msg += f'签到成功,已获得15分钟免费时长\n'
|
||||
else:
|
||||
log.info('签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上线')
|
||||
ret_msg = '签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上线\n'
|
||||
ret_msg += '签到失败,未获得免费时长,可能是已经签到过了或者超出免费时长上线\n'
|
||||
ret_msg += f'你当前拥有免费时长 {self.Time_Conversion(int(data["data"]["free_time"]["free_time"]))} ,' \
|
||||
f'畅玩卡状态为 {data["data"]["play_card"]["short_msg"]},拥有米云币 {data["data"]["coin"]["coin_num"]} 枚'
|
||||
log.info(ret_msg)
|
||||
|
||||
2
main.py
2
main.py
@ -103,7 +103,7 @@ def main():
|
||||
else:
|
||||
cloud_ys = cloud_genshin.CloudGenshin()
|
||||
data = cloud_ys.sign_account()
|
||||
return_data += "\n\n云原神:\n" + data
|
||||
return_data += "\n\n" + data
|
||||
return ret_code, return_data
|
||||
elif config.config["account"]["cookie"] == "CookieError":
|
||||
raise CookieError('Cookie expires')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user