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

Function cashOut

jd_cfdtx.js:66–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 .finally(() => $.done());
65
66function cashOut() {
67 return new Promise(async (resolve) => {
68 $.get(
69 taskUrl(
70 `consume/CashOut`,
71 `ddwMoney=100&dwIsCreateToken=0&ddwMinPaperMoney=150000&strPgtimestamp=${$.currentToken['timestamp']}&strPhoneID=${$.currentToken['phoneid']}&strPgUUNum=${$.currentToken['farm_jstoken']}`
72 ),
73 async (err, resp, data) => {
74 try {
75 $.log(data);
76 const { iRet, sErrMsg } = JSON.parse(data);
77 $.log(sErrMsg);
78 $.result.push(`【${$.userName}】\n ${sErrMsg == "" ? sErrMsg="今天手气太棒了" : sErrMsg}`);
79 resolve(sErrMsg);
80 } catch (e) {
81 $.logErr(e, resp);
82 } finally {
83 resolve();
84 }
85 }
86 );
87 });
88}
89
90function taskUrl(function_path, body) {
91 return {

Callers 1

jd_cfdtx.jsFile · 0.70

Calls 4

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

Tested by

no test coverage detected