()
| 272 | } |
| 273 | |
| 274 | async loginCommunityToken() { |
| 275 | if (!this.token) return; |
| 276 | const result = await this.request("/wx/auth/loginByToken", { |
| 277 | method: "POST", |
| 278 | base: "https://cmallwap.xkmm.cn/haday", |
| 279 | data: { access_token: this.token }, |
| 280 | auth: false, |
| 281 | isJson: true, |
| 282 | }); |
| 283 | this.communityToken = result?.data || result || ""; |
| 284 | this.saveCachedToken(); |
| 285 | } |
| 286 | |
| 287 | async checkToken() { |
| 288 | try { |
no test coverage detected