()
| 190 | } |
| 191 | |
| 192 | async detectSignActId() { |
| 193 | if (this.signActId) return this.signActId; |
| 194 | if (!this.templateUrl) return ""; |
| 195 | try { |
| 196 | const { data } = await axios.get(this.templateUrl, { |
| 197 | headers: this.headers(), |
| 198 | timeout: 30000, |
| 199 | }); |
| 200 | this.signActId = findSignActId(data); |
| 201 | if (this.signActId) this.log(`识别签到活动ID: ${this.signActId}`); |
| 202 | } catch (e) { |
| 203 | this.log(`读取模板失败: ${e.message || e}`); |
| 204 | } |
| 205 | return this.signActId; |
| 206 | } |
| 207 | |
| 208 | async queryAssets() { |
| 209 | const { data } = await axios.post( |
no test coverage detected