MCPcopy Create free account
hub / github.com/ClydeTime/Surge / dzdpComplete

Function dzdpComplete

Script/Task/xmly.js:672–697  ·  view source on GitHub ↗
(actCode)

Source from the content-addressed store, hash-verified

670}
671
672async function dzdpComplete(actCode){
673 let headers = {
674 'Content-Type' : `application/json`
675 }
676 let body = `{"thirdAppName":"xmly_exchange_dzdp","paramInfo":"{\\"taskId\\":\\"exchange_dzdp\\",\\"actCode\\":${actCode}}"}`;
677 let myRequest = {
678 url: "https://m.dianping.com/faaslocal/h5applink/api/pointmallapplink/thirdAppTaskComplete",
679 headers: headers,
680 body: body
681 }
682 return await $.http.post(myRequest).then(
683 (response) => {
684 body = JSON.parse(response.body)
685 if (body.code == 200) {
686 $.log("- 跳转任务完成")
687 return true
688 } else {
689 $.log("- !!!未知完成状态")
690 return false
691 }
692 },(reason) => {
693 $.log("- !!!跳转任务失败")
694 return false
695 }
696 )
697}
698
699async function adVideoGetToken(){
700 let headers = {

Callers

nothing calls this directly

Calls 3

postMethod · 0.45
parseMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected