(data)
| 287 | }) |
| 288 | } |
| 289 | function safeGet(data) { |
| 290 | try { |
| 291 | if (typeof JSON.parse(data) == "object") { |
| 292 | return true; |
| 293 | } |
| 294 | } catch (e) { |
| 295 | console.log(e); |
| 296 | console.log(`京东服务器访问数据为空,请检查自身设备网络情况`); |
| 297 | return false; |
| 298 | } |
| 299 | } |
| 300 | function jsonParse(str) { |
| 301 | if (typeof str == "string") { |
| 302 | try { |
no test coverage detected