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

Function getFullCollectionReward

jd_fruit.js:947–968  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

945// ========================API调用接口========================
946//鸭子,点我有惊喜
947async function getFullCollectionReward() {
948 return new Promise(resolve => {
949 const body = {"type": 2, "version": 6, "channel": 2};
950 $.post(taskUrl("getFullCollectionReward", body), (err, resp, data) => {
951 try {
952 if (err) {
953 console.log('\n东东农场: API查询请求失败 ‼️‼️');
954 console.log(JSON.stringify(err));
955 $.logErr(err);
956 } else {
957 if (safeGet(data)) {
958 $.duckRes = JSON.parse(data);
959 }
960 }
961 } catch (e) {
962 $.logErr(e, resp)
963 } finally {
964 resolve();
965 }
966 })
967 })
968}
969
970/**
971 * 领取10次浇水奖励API

Callers 1

duckFunction · 0.85

Calls 5

taskUrlFunction · 0.70
safeGetFunction · 0.70
postMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected