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

Function noviceTask

jd_cfd.js:1437–1454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1435
1436// 新手任务
1437async function noviceTask(){
1438 let body = ``
1439 await init(`user/guideuser`, body)
1440 body = `strMark=guider_step&strValue=welcom&dwType=2`
1441 await init(`user/SetMark`, body)
1442 body = `strMark=guider_over_flag&strValue=999&dwType=2`
1443 await init(`user/SetMark`, body)
1444 body = `strMark=guider_step&strValue=999&dwType=2`
1445 await init(`user/SetMark`, body)
1446 body = `strMark=guider_step&strValue=999&dwType=2`
1447 await init(`user/SetMark`, body)
1448 body = `strMark=guider_over_flag&strValue=999&dwType=2`
1449 await init(`user/SetMark`, body)
1450 body = `strMark=guider_step&strValue=gift_redpack&dwType=2`
1451 await init(`user/SetMark`, body)
1452 body = `strMark=guider_step&strValue=none&dwType=2`
1453 await init(`user/SetMark`, body)
1454}
1455async function init(function_path, body) {
1456 return new Promise(async (resolve) => {
1457 $.get(taskUrl(function_path, body), async (err, resp, data) => {

Callers 1

cfdFunction · 0.85

Calls 1

initFunction · 0.70

Tested by

no test coverage detected