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

Method task_create2

jlqc.js:256–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

hitokotoMethod · 0.95
task_delatMethod · 0.95
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
waitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected