(data)
| 781 | }) |
| 782 | } |
| 783 | function safeGet(data) { |
| 784 | try { |
| 785 | if (typeof JSON.parse(data) == "object") { |
| 786 | return true; |
| 787 | } |
| 788 | } catch (e) { |
| 789 | console.log(e); |
| 790 | console.log(`京东服务器访问数据为空,请检查自身设备网络情况`); |
| 791 | return false; |
| 792 | } |
| 793 | } |
| 794 | function jsonParse(str) { |
| 795 | if (typeof str == "string") { |
| 796 | try { |
no test coverage detected