MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / pointSign

Method pointSign

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

Source from the content-addressed store, hash-verified

522 }
523
524 async pointSign(pathname, data = {}, query = {}) {
525 const url = Object.keys(query).length ? addSearch(`${POINT_BASE}${pathname}`, query) : `${POINT_BASE}${pathname}`;
526 const res = await request("POST", "", url, { ...this.commonSignParams(), ...data }, { signType: "WEB_CN_GW" });
527 if (res.status !== 200 || isTokenError(res.data)) throw new Error(`${pathname}失败: ${short(res.data, 500)}`);
528 return res.data;
529 }
530
531 async queryProfile() {
532 const res = await request("GET", "", `${POINT_BASE}/MobileMiniAppAPI/s/6.3/account/getCustomerProfile`, {

Callers 2

querySignStatusMethod · 0.95
signInMethod · 0.95

Calls 5

commonSignParamsMethod · 0.95
addSearchFunction · 0.85
requestFunction · 0.70
isTokenErrorFunction · 0.70
shortFunction · 0.70

Tested by

no test coverage detected