(name)
| 345 | |
| 346 | |
| 347 | async task_artlist(name) { // 圈子动态列表 |
| 348 | try { |
| 349 | let options = { |
| 350 | method: 'POST', |
| 351 | url: this.hostname + '/api/v1/community/topicContent/queryPage', |
| 352 | headers: this.headersPostv1, |
| 353 | body: { pageSize: 10, pageNum: 1, auditStatus: 3 }, |
| 354 | json: true |
| 355 | }; |
| 356 | |
| 357 | options = changeCode(options) |
| 358 | //console.log(options); |
| 359 | //console.log(options); |
| 360 | let result = await httpRequest(options, name); |
| 361 | //console.log(result); |
| 362 | if (result.code == "success") { |
| 363 | DoubleLog(`账号[${this.index}] 文章列表: ${result.data.list[1].id}`); |
| 364 | DoubleLog(`账号[${this.index}] 文章列表: ${result.data.list[2].id}`); |
| 365 | DoubleLog(`账号[${this.index}] 文章列表: ${result.data.list[3].id}`); |
| 366 | let artid1 = result.data.list[1].id |
| 367 | await this.task_comment(artid1); |
| 368 | await $.wait(20000) |
| 369 | let artid2 = result.data.list[2].id |
| 370 | await this.task_comment(artid2); |
| 371 | await $.wait(20000) |
| 372 | let artid3 = result.data.list[3].id |
| 373 | await this.task_comment(artid3); |
| 374 | |
| 375 | } else { |
| 376 | DoubleLog(`账号[${this.index}] 获取:失败 ❌ 了呢,原因未知!`); |
| 377 | console.log(result); |
| 378 | } |
| 379 | } catch (error) { |
| 380 | console.log(error); |
| 381 | } |
| 382 | } |
| 383 | async hitokoto() { // 随机一言 |
| 384 | try { |
| 385 | let options = { |
nothing calls this directly
no test coverage detected