MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / regional_task

Method regional_task

daily/chinaUnicom.py:4684–4728  ·  view source on GitHub ↗

区域专区任务入口

(self, is_query_only=False)

Source from the content-addressed store, hash-verified

4682 self.wostore_cloud_draw(user_token)
4683
4684 def regional_task(self, is_query_only=False):
4685 """区域专区任务入口"""
4686 is_xinjiang = False
4687 is_henan = False
4688 is_yunnan = False
4689 if hasattr(self, 'city_info') and self.city_info and isinstance(self.city_info, list):
4690 try:
4691 for city in self.city_info:
4692 pro_name = city.get('proName', '')
4693 if "新疆" in pro_name: is_xinjiang = True
4694 if "河南" in pro_name: is_henan = True
4695 if "云南" in pro_name: is_yunnan = True
4696 except: pass
4697 if is_query_only:
4698 self.log("==== 区域专区 (查询模式) ====")
4699 if is_xinjiang:
4700 self.log("新疆专区: [查询模式] 跳过每日打卡,尝试查询每月抽奖记录")
4701 try:
4702 ticket_res = self.openPlatLineNew("https://zy100.xj169.com/touchpoint/openapi/jumpHandRoom1G?source=155&type=02")
4703 if ticket_res and ticket_res.get("ticket"):
4704 token = self.xj_get_token(ticket_res.get("ticket"))
4705 if token:
4706 self.xj_query_monthly_draw_records(token)
4707 except Exception as e:
4708 self.log(f"新疆专区: [查询模式] 查询每月抽奖记录异常 {e}")
4709 if is_henan:
4710 is_signed = self.shangdu_get_sign_status()
4711 if is_signed is True:
4712 self.log("河南商都: [状态查询] 今日已签到")
4713 elif is_signed is False:
4714 self.log("河南商都: [状态查询] 今日未签到")
4715 else:
4716 self.log("河南商都: [状态查询] 查询失败")
4717 if is_yunnan:
4718 self.yunnan_life_task(is_query_only=True)
4719 return
4720 if is_xinjiang:
4721 self.log("==== 新疆专区 ====")
4722 self.xj_task_main()
4723 if is_henan:
4724 self.log("==== 河南商都 ====")
4725 self.shangdu_task_main()
4726 if is_yunnan:
4727 self.log("==== 云南生活 ====")
4728 self.yunnan_life_task()
4729
4730 def yunnan_life_base_headers(self, token=None, extra=None):
4731 headers = {

Callers 1

execute_daily_tasksMethod · 0.95

Calls 9

logMethod · 0.95
openPlatLineNewMethod · 0.95
xj_get_tokenMethod · 0.95
yunnan_life_taskMethod · 0.95
xj_task_mainMethod · 0.95
shangdu_task_mainMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected