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

Function appletPost

wxapp/fyzq.js:70–89  ·  view source on GitHub ↗
(urlPath, params = {}, token = "")

Source from the content-addressed store, hash-verified

68}
69
70async function appletPost(urlPath, params = {}, token = "") {
71 const body = {
72 ...params,
73 deviceType: "4",
74 channel: "wxxcx",
75 };
76 if (token) body.token = token;
77 body.sign = makeSign(body);
78
79 const { data } = await axios.post(`${APPLET_BASE}${urlPath}`, new URLSearchParams(body).toString(), {
80 headers: {
81 "Content-Type": "application/x-www-form-urlencoded",
82 Referer: `https://servicewechat.com/${MINI_APP_ID}/52/page-frame.html`,
83 "User-Agent": "Mozilla/5.0 MicroMessenger MiniProgramEnv/Windows",
84 },
85 timeout: 15000,
86 validateStatus: () => true,
87 });
88 return data;
89}
90
91class Task {
92 constructor(account) {

Callers 3

loginMethod · 0.85
signBannerMethod · 0.85
doSignMethod · 0.85

Calls 2

makeSignFunction · 0.70
postMethod · 0.45

Tested by

no test coverage detected