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

Method pointScore

wxapp/hisense_aijia.js:518–522  ·  view source on GitHub ↗
(pathname, data = {})

Source from the content-addressed store, hash-verified

516 }
517
518 async pointScore(pathname, data = {}) {
519 const res = await request("POST", POINT_BASE, pathname, { ...this.commonPointParams(), ...data }, { signType: "WEB_CN_GW" });
520 if (res.status !== 200 || isTokenError(res.data)) throw new Error(`${pathname}失败: ${short(res.data, 500)}`);
521 return res.data;
522 }
523
524 async pointSign(pathname, data = {}, query = {}) {
525 const url = Object.keys(query).length ? addSearch(`${POINT_BASE}${pathname}`, query) : `${POINT_BASE}${pathname}`;

Callers 2

queryPointsMethod · 0.95
queryTodayRecordsMethod · 0.95

Calls 4

commonPointParamsMethod · 0.95
requestFunction · 0.70
isTokenErrorFunction · 0.70
shortFunction · 0.70

Tested by

no test coverage detected