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

Function jsonParse

jd_cfd.js:1654–1664  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1652 })
1653}
1654function jsonParse(str) {
1655 if (typeof str == "string") {
1656 try {
1657 return JSON.parse(str);
1658 } catch (e) {
1659 console.log(e);
1660 $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
1661 return [];
1662 }
1663 }
1664}
1665/*
1666修改时间戳转换函数,京喜工厂原版修改
1667 */

Callers 1

jd_cfd.jsFile · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected