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

Function jsonParse

jd_cfd_loop.js:422–432  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

420 })
421}
422function jsonParse(str) {
423 if (typeof str == "string") {
424 try {
425 return JSON.parse(str);
426 } catch (e) {
427 console.log(e);
428 $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
429 return [];
430 }
431 }
432}
433/*
434修改时间戳转换函数,京喜工厂原版修改
435 */

Callers 1

jd_cfd_loop.jsFile · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected