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

Method task_comment

jlqc.js:282–321  ·  view source on GitHub ↗
(artid)

Source from the content-addressed store, hash-verified

280 }
281
282 async task_comment(artid) { // 执行评论
283 try {
284 let comment = await this.hitokoto(),
285 ts = ts10()
286 let body = { 'content': comment, 'parentId': '', 'type': '2', 'id': artid, 'ts': ts, 'cId': 'BLqo2nmmoPgGuJtFDWlUjRI2b1b' }
287 let options = {
288 url: 'https://app.geely.com/apis/api/v2/comment/publisherComment',
289 headers: {
290 Host: 'app.geely.com',
291 'user-agent': 'Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36/android/geelyApp',
292 'x-data-sign': en(body),
293 'Content-Type': 'application/json; charset=utf-8',
294 'devicesn': '356617505697247',
295 'accept': 'application/json, text/plain, */*',
296 txcookie: this.ck1,
297 'platform': 'Android',
298 'token': this.ck2,
299 'origin': 'https://app.geely.com',
300 'x-requested-with': 'com.geely.consumer',
301 'sec-fetch-site': 'same-origin',
302 'sec-fetch-mode': 'cors',
303 'sec-fetch-dest': 'empty',
304 referer: 'https://app.geely.com/app-share/we/dynamic/detail?id=1615575296902418432',
305 //cookie: 'sensorsdata2015jssdkcross={"distinct_id":"185c90a49e018f-0652bc15a1bf3ec-a42722a-326190-185c90a49e10","first_id":"","props":{"$latest_traffic_source_type":"直接流量","$latest_search_keyword":"未取到值_直接打开","$latest_referrer":""},"identities":"eyIkaWRlbnRpdHlfY29va2llX2lkIjoiMTg1YzkwYTQ5ZTAxOGYtMDY1MmJjMTVhMWJmM2VjLWE0MjcyMmEtMzI2MTkwLTE4NWM5MGE0OWUxMCJ9","history_login_id":{"name":"","value":""},"$device_id":"185c90a49e018f-0652bc15a1bf3ec-a42722a-326190-185c90a49e10"}'
306 },
307 body: JSON.stringify({ content: comment, parentId: '', type: '2', id: artid, ts: ts, cId: 'BLqo2nmmoPgGuJtFDWlUjRI2b1b' }),
308 };
309 //console.log(options);
310 let result = await httpRequest(options);
311 //console.log(result);
312 if (result.code == "success") {
313 DoubleLog(`账号[${this.index}] 评论文章:` + artid + `:${result.code}`);
314 } else {
315 DoubleLog(`账号[${this.index}] 评论:失败 ❌ 了呢,原因未知!`);
316 console.log(result);
317 }
318 } catch (error) {
319 console.log(error);
320 }
321 }
322
323 async task_delat(artid) { // 执行删除
324 try {

Callers 1

task_artlistMethod · 0.95

Calls 6

hitokotoMethod · 0.95
ts10Function · 0.85
enFunction · 0.85
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected