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

Function safeGet

jd_syj.js:823–833  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

821 })
822}
823function safeGet(data) {
824 try {
825 if (typeof JSON.parse(data) == "object") {
826 return true;
827 }
828 } catch (e) {
829 console.log(e);
830 console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
831 return false;
832 }
833}
834function jsonParse(str) {
835 if (typeof str == "string") {
836 try {

Callers 9

userSignInFunction · 0.70
pg_channel_page_dataFunction · 0.70
vviptask_receive_listFunction · 0.70
openRedPacketFunction · 0.70
helpFriendTuanFunction · 0.70
getUserTuanInfoFunction · 0.70
openTuanFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected