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

Method headers

wxapp/tclx_lc.js:80–93  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

78 }
79
80 headers(extra = {}) {
81 const sectoken = this.loginInfo.sectoken || "";
82 return {
83 apmat: `${this.loginInfo.openId || this.openid}|${new Date().toISOString().slice(0, 16).replace(/[-T:]/g, "")}|${Math.floor(Math.random() * 1000000)}`,
84 TCSecTk: sectoken,
85 TCxcxVersion: "10.8.7",
86 platform: "WX_MP",
87 osType: "2",
88 secToken: sectoken,
89 "TC-MALL-PLATFORM-CODE": "WX_MP",
90 "TC-MALL-USER-TOKEN": sectoken,
91 ...extra,
92 };
93 }
94
95 async login() {
96 const code = await getWxCode(APP.appid, this.openid);

Callers 2

queryMethod · 0.95
signMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected