(artid)
| 321 | } |
| 322 | |
| 323 | async task_delat(artid) { // 执行删除 |
| 324 | try { |
| 325 | let options = { |
| 326 | url: this.hostname + '/api/v2/topicContent/deleteContent', |
| 327 | headers: this.headersPostv2, |
| 328 | body: JSON.stringify({ id: artid }), |
| 329 | }; |
| 330 | //console.log(options); |
| 331 | let result = await httpRequest(options); |
| 332 | //console.log(result); |
| 333 | if (result.code == "success") { |
| 334 | DoubleLog(`账号[${this.index}] 删除文章:` + artid + `:${result.code}`); |
| 335 | } else { |
| 336 | DoubleLog(`账号[${this.index}] 删除:失败 ❌ 了呢,原因未知!`); |
| 337 | console.log(result); |
| 338 | } |
| 339 | } catch (error) { |
| 340 | console.log(error); |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | |
| 345 |
no test coverage detected