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