(data)
| 391 | }) |
| 392 | } |
| 393 | function safeGet(data) { |
| 394 | try { |
| 395 | if (typeof JSON.parse(data) == "object") { |
| 396 | return true; |
| 397 | } |
| 398 | } catch (e) { |
| 399 | console.log(e); |
| 400 | console.log(`京东服务器访问数据为空,请检查自身设备网络情况`); |
| 401 | return false; |
| 402 | } |
| 403 | } |
| 404 | function jsonParse(str) { |
| 405 | if (typeof str == "string") { |
| 406 | try { |
no test coverage detected