()
| 254 | } |
| 255 | |
| 256 | async task_create2() { // 发布长图文 |
| 257 | let createTxt = await this.hitokoto() |
| 258 | try { |
| 259 | let options = { |
| 260 | url: this.hostname + '/api/v2/topicContent/create', |
| 261 | headers: this.headersPostv2, |
| 262 | body: JSON.stringify({ longImgUrl: this.imgurl, circleId: null, contentType: 2, content: createTxt, fileList: null, longTitle: createTxt, topicList: [] }), |
| 263 | }; |
| 264 | //console.log(options); |
| 265 | let result = await httpRequest(options); |
| 266 | //console.log(result); |
| 267 | if (result.code == "success") { |
| 268 | DoubleLog(`账号[${this.index}] 发布长图文: ${result.code} [${result.data}]`); |
| 269 | let artId = result.data; |
| 270 | await $.wait(15000); |
| 271 | DoubleLog("================ 开始删除发布长图文 ================"); |
| 272 | await this.task_delat(artId); |
| 273 | } else { |
| 274 | DoubleLog(`账号[${this.index}] 发布长图文:失败 ❌ 了呢,原因未知!`); |
| 275 | console.log(result); |
| 276 | } |
| 277 | } catch (error) { |
| 278 | console.log(error); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | async task_comment(artid) { // 执行评论 |
| 283 | try { |
nothing calls this directly
no test coverage detected