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

Method task_create1

jlqc.js:223–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 async task_create1() { // 发布动态
224 let createTxt = await this.hitokoto()
225 try {
226 let options = {
227 url: 'https://app.geely.com/api/v2/topicContent/create',
228 headers: this.headersPostv2,
229 body: JSON.stringify({ circleId: null, contentType: 1, content: createTxt, fileList: null, longTitle: createTxt, topicList: [] }),
230 };
231 //console.log(options);
232 let result = await httpRequest(options, 'post');
233 //console.log(result);
234 if (result.code == "success") {
235 DoubleLog(`账号[${this.index}] 发布动态: ${result.code} [${result.data}]`);
236 let artId = result.data;
237 //console.log("---------------- 开始评论动态 ----------------");
238 //await wait(5);
239 //for (let i = 0; i < 3; i++) {
240 //await this.task_comment(artId);
241 //await wait(10);
242 //}
243 await $.wait(this.getRandomTime());
244 console.log(`随机延迟${this.getRandomTime()}ms`);
245 DoubleLog("================== 开始删除动态 ==================");
246 await this.task_delat(artId);
247 } else {
248 DoubleLog(`账号[${this.index}] 发布动态:失败 ❌ 了呢,原因未知!`);
249 console.log(result);
250 }
251 } catch (error) {
252 console.log(error);
253 }
254 }
255
256 async task_create2() { // 发布长图文
257 let createTxt = await this.hitokoto()

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected