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

Method task_like

jlld.js:106–127  ·  view source on GitHub ↗
(essayId)

Source from the content-addressed store, hash-verified

104 }
105
106 async task_like(essayId) {
107 try {
108 let options = {
109 fn: "点赞文章",
110 method: "post",
111 url: `https://app-api.radar-ev.com/appapi/content/activitythumb/thumbs`,
112 headers: this.headers,
113 body: JSON.stringify({ "essayId": essayId, "status": 1, "currentThumb": 192 })
114 }
115 let { body: result } = await $.httpRequest(options);
116 //console.log(options);
117 //console.log(result);
118 if (result.code == 0) {
119 $.log(`点赞成功`)
120 } else {
121 console.log(`❌账号[${this.index}] 点赞文章失败`);
122 console.log(result);
123 }
124 } catch (e) {
125 console.log(e);
126 }
127 }
128
129 async task_share(businessCode) {
130 try {

Callers 1

mainMethod · 0.95

Calls 2

httpRequestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected