(pathname, data = {}, method = "POST")
| 168 | } |
| 169 | |
| 170 | async api(pathname, data = {}, method = "POST") { |
| 171 | if (!this.tenId) throw new Error("缺少tenId,无法请求业务接口"); |
| 172 | return this.request(method, `${API_BASE}${pathname}?tenid=${this.tenId}`, data); |
| 173 | } |
| 174 | |
| 175 | async getOperateData() { |
| 176 | const wxServerUrl = process.env.wx_server_url; |
no test coverage detected