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

Function safeGet

jd_dreamFactory.js:1469–1479  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1467 })
1468}
1469function safeGet(data) {
1470 try {
1471 if (typeof JSON.parse(data) == "object") {
1472 return true;
1473 }
1474 } catch (e) {
1475 console.log(e);
1476 console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
1477 return false;
1478 }
1479}
1480function taskTuanUrl(functionId, body = '', stk) {
1481 let url = `https://m.jingxi.com/dreamfactory/tuan/${functionId}?${body}&_time=${Date.now()}&_=${Date.now() + 2}&sceneval=2&g_login_type=1&_ste=1`
1482 url += `&h5st=${decrypt(Date.now(), stk || '', '', url)}`

Callers 15

collectElectricityFunction · 0.70
investElectricFunction · 0.70
taskListFunction · 0.70
getUserElectricityFunction · 0.70
QueryHireRewardFunction · 0.70
hireAwardFunction · 0.70
assistFriendFunction · 0.70
QueryFriendListFunction · 0.70
completeTaskFunction · 0.70
doTaskFunction · 0.70
userInfoFunction · 0.70
GetCommodityDetailsFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected