MCPcopy Create free account
hub / github.com/Semporia/Scripts / sign

Function sign

activity/jd_tcl.js:171–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169}
170
171function sign() {
172 return new Promise((resolve) => {
173 $.post(taskUrl('/ql/front/tcl002/goSign'), async (err, resp, data) => {
174 try {
175 if (err) {
176 console.log(`${JSON.stringify(err)}`);
177 console.log(`${$.name} API请求失败,请检查网路重试`);
178 } else {
179 data = $.toObj(data)
180 console.log(`签到结果:` + data.msg)
181 }
182 } catch (e) {
183 $.logErr(e, resp);
184 } finally {
185 resolve(data);
186 }
187 });
188 });
189}
190
191function browse(type = 0) {
192 return new Promise((resolve) => {

Callers 1

mainFunction · 0.70

Calls 5

taskUrlFunction · 0.70
postMethod · 0.45
logMethod · 0.45
toObjMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected