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

Method get_headers

daily/erke.py:67–74  ·  view source on GitHub ↗
(self, sign_val: str)

Source from the content-addressed store, hash-verified

65 self.ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF'
66
67 def get_headers(self, sign_val: str) -> Dict[str, str]:
68 return {
69 'User-Agent': self.ua,
70 'Content-Type': 'application/x-www-form-urlencoded',
71 'sign': sign_val, # 注意:原逻辑此处传入的是enterprise_id
72 'channelEntrance': 'wx_app',
73 'Referer': 'https://servicewechat.com/wxa1f1fa3785a47c7d/85/page-frame.html',
74 }
75
76 def get_integral(self):
77 """查询积分明细"""

Callers 2

get_integralMethod · 0.95
sign_inMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected