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

Method loadClockConfig

wxapp/wps.js:376–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 }
375
376 async loadClockConfig() {
377 const res = await axios.get(ACTIVITY_CONFIG, {
378 timeout: 15000,
379 validateStatus: () => true,
380 headers: {
381 "User-Agent": "Mozilla/5.0 MicroMessenger MiniProgramEnv/Windows",
382 Referer: `https://servicewechat.com/${MINI_APP_ID}/249/page-frame.html`,
383 },
384 });
385 if (res.data?.result === "ok" && res.data?.data?.value) {
386 this.clockConfig = res.data.data.value;
387 if (!this.clockConfig.key && this.clockConfig.s_key) this.clockConfig.key = this.clockConfig.s_key;
388 }
389 }
390
391 async userInfo() {
392 const data = assertOk(await this.request("POST", "https://account.wps.cn/p/auth/check"), "查询用户信息");

Callers 1

runMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected