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

Method task_share

jlld.js:129–151  ·  view source on GitHub ↗
(businessCode)

Source from the content-addressed store, hash-verified

127 }
128
129 async task_share(businessCode) {
130 try {
131 let options = {
132 fn: "分享文章",
133 method: "post",
134 url: `https://app-api.radar-ev.com/appapi/radarpoints/api/task/manage/action/submit`,
135 headers: this.headers,
136 body: JSON.stringify({ "businessCode": businessCode, "actionType": 1, "userId": this.ck3})
137 }
138 //console.log(options);
139
140 let { body: result } = await $.httpRequest(options);
141 console.log(result);
142 if (result.code == 200) {
143 $.log(`分享成功`)
144 } else {
145 console.log(`❌账号[${this.index}] 分享文章失败`);
146 console.log(result);
147 }
148 } catch (e) {
149 console.log(e);
150 }
151 }
152
153 async art_list() {
154 try {

Callers 1

mainMethod · 0.95

Calls 2

httpRequestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected