添加【爱奇艺】10s 任务

This commit is contained in:
shitao 2021-03-11 08:00:22 +08:00
parent 03d1bf9bca
commit ba396dade6

View File

@ -88,7 +88,7 @@ class IQIYICheckIn:
"taskReward": item["taskReward"]["task_reward_growth"],
}
)
return self
return self.task_list
def join_task(self, p00001):
"""
@ -108,7 +108,9 @@ class IQIYICheckIn:
"""
url = "https://tc.vip.iqiyi.com/taskCenter/task/getTaskRewards"
params = {"P00001": p00001, "taskCode": "", "platform": "bb136ff4276771f3", "lang": "zh_CN"}
for one in range(3):
for item in self.task_list:
time.sleep(2)
if item["status"] == 0:
params["taskCode"] = item["taskCode"]
res = requests.get(url=url, params=params)
@ -178,8 +180,9 @@ class IQIYICheckIn:
draw_msg += ret["msg"] + ";" if ret["status"] else ""
else:
draw_msg = "抽奖机会不足"
self.query_user_task(p00001=p00001).join_task(p00001=p00001)
task_msg = self.query_user_task(p00001=p00001).get_task_rewards(p00001=p00001)
self.query_user_task(p00001=p00001)
self.join_task(p00001=p00001)
task_msg = self.get_task_rewards(p00001=p00001)
user_msg = self.user_information(p00001=p00001)
msg = f"{user_msg}\n" f"签到奖励: {sign_msg}\n任务奖励: {task_msg}\n抽奖奖励: {draw_msg}"
return msg