MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / task_delat

Method task_delat

jlqc.js:323–342  ·  view source on GitHub ↗
(artid)

Source from the content-addressed store, hash-verified

321 }
322
323 async task_delat(artid) { // 执行删除
324 try {
325 let options = {
326 url: this.hostname + '/api/v2/topicContent/deleteContent',
327 headers: this.headersPostv2,
328 body: JSON.stringify({ id: artid }),
329 };
330 //console.log(options);
331 let result = await httpRequest(options);
332 //console.log(result);
333 if (result.code == "success") {
334 DoubleLog(`账号[${this.index}] 删除文章:` + artid + `:${result.code}`);
335 } else {
336 DoubleLog(`账号[${this.index}] 删除:失败 ❌ 了呢,原因未知!`);
337 console.log(result);
338 }
339 } catch (error) {
340 console.log(error);
341 }
342 }
343
344
345

Callers 2

task_create1Method · 0.95
task_create2Method · 0.95

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected