()
| 23 | this.essayList = [] |
| 24 | } |
| 25 | async main() { |
| 26 | await this.user_info() |
| 27 | if (this.ckStatus == true) { |
| 28 | await this.content_list(); |
| 29 | //console.log(this.contentList) |
| 30 | if (this.contentList.length > 0) { |
| 31 | for (let i = 0; i < 5; i++) { |
| 32 | await this.task_like(this.contentList[0].id) |
| 33 | } |
| 34 | } |
| 35 | await this.essay_list() |
| 36 | if (this.essayList.length > 0) { |
| 37 | for (let i = 0; i < 5; i++) { |
| 38 | await this.task_share(this.essayList[i].id) |
| 39 | |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | } |
| 45 | async taskRequest(method, url, body = "") { |
| 46 | // |
| 47 | let headers = { |
no test coverage detected