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

Function queryDoneTaskRecord

jd_small_home.js:405–429  ·  view source on GitHub ↗
(taskId, taskType)

Source from the content-addressed store, hash-verified

403}
404//记录已关注的频道
405function queryDoneTaskRecord(taskId, taskType) {
406 return new Promise(resolve => {
407 $.get(taskUrl(`/ssjj-task-record/queryDoneTaskRecord/${taskType}/${taskId}`), (err, resp, data) => {
408 try {
409 if (err) {
410 console.log(`${JSON.stringify(err)}`)
411 console.log(`${$.name} API请求失败,请检查网路重试`)
412 } else {
413 if (safeGet(data)) {
414 data = JSON.parse(data);
415 if (data.head.code === 200) {
416 if (data.body) {
417 // message += `【限时连连看】成功,活动${awardWoB}WO币\n`;
418 }
419 }
420 }
421 }
422 } catch (e) {
423 $.logErr(e, resp)
424 } finally {
425 resolve(data);
426 }
427 })
428 })
429}
430//一键关注店铺,一键加购商品API
431function followShops(functionID, taskId) {
432 return new Promise(async resolve => {

Callers 2

doChannelsListTaskFunction · 0.85
doAllTaskFunction · 0.85

Calls 5

taskUrlFunction · 0.70
safeGetFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected