Update cloud_genshin.py

This commit is contained in:
灯火阑珊 2022-08-27 22:13:05 +08:00 committed by GitHub
parent 87b3ae0ccb
commit a1f76e15e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ class cloud_ys():
'x-rpc-app_version': setting.cloudgenshin_Version, 'x-rpc-app_version': setting.cloudgenshin_Version,
'x-rpc-sys_version': '12', # Previous version need to convert the type of this var 'x-rpc-sys_version': '12', # Previous version need to convert the type of this var
'x-rpc-channel': 'mihoyo', 'x-rpc-channel': 'mihoyo',
'x-rpc-device_id': tools.get_cloud_device_id(), 'x-rpc-device_id': tools.get_device_id(),
'x-rpc-device_name': 'Xiaomi M2012K11AC', 'x-rpc-device_name': 'Xiaomi M2012K11AC',
'x-rpc-device_model': 'M2012K11AC', 'x-rpc-device_model': 'M2012K11AC',
'x-rpc-app_id': '1953439974', 'x-rpc-app_id': '1953439974',
@ -41,4 +41,4 @@ class cloud_ys():
reqs = http.get(url=setting.Cloud_ys_Inquire,headers=self.headers).json() reqs = http.get(url=setting.Cloud_ys_Inquire,headers=self.headers).json()
nr = (f"\n你当前拥有免费时长 {reqs['data']['free_time']['free_time']} 分钟,畅玩卡状态为 {reqs['data']['play_card']['short_msg']},拥有米云币 {reqs['data']['coin']['coin_num']}") nr = (f"\n你当前拥有免费时长 {reqs['data']['free_time']['free_time']} 分钟,畅玩卡状态为 {reqs['data']['play_card']['short_msg']},拥有米云币 {reqs['data']['coin']['coin_num']}")
data = data + nr data = data + nr
return data return data