(data)
| 821 | }) |
| 822 | } |
| 823 | function 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 | } |
| 834 | function jsonParse(str) { |
| 835 | if (typeof str == "string") { |
| 836 | try { |
no test coverage detected