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

Function setMark

jd_cfd.js:1127–1144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1125}
1126
1127function setMark() {
1128 return new Promise(resolve => {
1129 $.get(taskUrl("user/SetMark", `strMark=daily_task_win&strValue=1&dwType=1`), (err, resp, data) => {
1130 try {
1131 if (err) {
1132 console.log(`${JSON.stringify(err)}`);
1133 console.log(`${$.name} SetMark API请求失败,请检查网路重试`);
1134 } else {
1135 data = JSON.parse(data.replace(/\n/g, "").match(new RegExp(/jsonpCBK.?\((.*);*\)/))[1]);
1136 }
1137 } catch (e) {
1138 $.logErr(e, resp);
1139 } finally{
1140 resolve();
1141 }
1142 })
1143 })
1144}
1145
1146// 获取用户信息
1147function getUserInfo(showInvite = true) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected