MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / task_artlist

Method task_artlist

jlqc.js:347–382  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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 = {

Callers

nothing calls this directly

Calls 6

task_commentMethod · 0.95
changeCodeFunction · 0.85
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
waitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected