MCPcopy Create free account
hub / github.com/Moli-X/Resources / dosignhis

Function dosignhis

Script/Elem/elemSign.js:242–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242function dosignhis() {
243
244 return new Promise(resolve => {
245 setTimeout(() => {
246
247 try {
248 var endurl = '/sign_in/info'
249 url = { url: `https://h5.ele.me/restapi/member/v1/users/`, headers: headerscommon }
250 if (cookieVal == undefined || cookieVal == "0" || cookieVal == null) {
251 sy.msg(cookieName, "未获取Cookie", '');
252 return;
253 }
254 url.url += userid;
255 url.url += endurl;
256 sy.get(url, (error, response, data) => {
257
258 var obj = JSON.parse(data);
259
260 hisresult = obj;
261
262
263 resolve('done');
264 })
265 }
266 catch (erre) {
267 resolve('done')
268 }
269 })
270 })
271}
272
273function doNotify() {
274 var ret = signresult+'\n';

Callers 1

signFunction · 0.85

Calls 3

msgMethod · 0.45
getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected