mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
♻️ 重构(iqiyi/main.py):简化msg和return的代码结构,提高代码的可读性
This commit is contained in:
parent
3cb28a3471
commit
44081f6e45
@ -106,9 +106,7 @@ class IQIYI(CheckIn):
|
||||
msg = [{"name": "签到天数", "value": _msg}]
|
||||
else:
|
||||
try:
|
||||
msg = [
|
||||
{"name": "签到天数", "value": res["data"]["data"]["signDays"]}
|
||||
]
|
||||
msg = [{"name": "签到天数", "value": res["data"]["data"]["signDays"]}]
|
||||
except Exception as e:
|
||||
msg = [{"name": "签到天数", "value": str(e)}]
|
||||
else:
|
||||
@ -265,12 +263,7 @@ class IQIYI(CheckIn):
|
||||
url="https://act.vip.iqiyi.com/level-right/receive", data=data
|
||||
).json()
|
||||
msg = res["msg"]
|
||||
return [
|
||||
{
|
||||
"name": "V7 免费升级星钻",
|
||||
"value": msg,
|
||||
}
|
||||
]
|
||||
return [{"name": "V7 免费升级星钻", "value": msg}]
|
||||
|
||||
def start_watch(self, p00001, p00003, dfp):
|
||||
total_time = self.get_watch_time(p00001=p00001)
|
||||
|
Loading…
Reference in New Issue
Block a user