| | |
| | | public R submit(@Valid @RequestBody User user) { |
| | | CacheUtil.clear(USER_CACHE); |
| | | //资格审查 |
| | | String body = InvestigateUtil.httpGet(user.getCardid()); |
| | | String body = InvestigateUtil.httpGetOne(user.getCardid()); |
| | | JSONObject jsonObject = new JSONObject(body); |
| | | String data = jsonObject.get("data").toString(); |
| | | JSONObject jsonData = new JSONObject(data); |
| | |
| | | user.setExaminationType("0"); |
| | | }else { |
| | | user.setExaminationType("1"); |
| | | user.setExaminationMx(res.getJSONObject(0).get("zdxsfzqkry").toString()); |
| | | user.setExaminationMx(res.getJSONObject(0).get("zdrylbjh").toString()); |
| | | } |
| | | return R.status(userService.submit(user)); |
| | | } |