(pathname, data = {}, query = {})
| 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`, { |
no test coverage detected