(data)
| 662 | } |
| 663 | |
| 664 | function safeGet(data) { |
| 665 | try { |
| 666 | if (typeof JSON.parse(data) == "object") { |
| 667 | return true; |
| 668 | } |
| 669 | } catch (e) { |
| 670 | console.log(e); |
| 671 | console.log(`京东服务器访问数据为空,请检查自身设备网络情况`); |
| 672 | return false; |
| 673 | } |
| 674 | } |
| 675 | function TotalBean() { |
| 676 | return new Promise(async resolve => { |
| 677 | const options = { |
no test coverage detected