| | |
| | | } |
| | | |
| | | if (model.getIdNumber().length()>50){ |
| | | throw new YamiShopBindException("证件号码长度超过50"); |
| | | throw new YamiShopBindException("ID number exceeds 50 characters"); |
| | | } |
| | | if (model.getName().length()>50){ |
| | | throw new YamiShopBindException("实名姓名长度超过50"); |
| | | throw new YamiShopBindException("Real name exceeds 50 characters"); |
| | | } |
| | | BeanUtils.copyProperties(model, realNameAuthRecord); |
| | | realNameAuthRecord.setUserId(user.getUserId()); |
| | |
| | | map.put("idName", record.getIdName()); |
| | | map.put("idNumber", record.getIdNumber()); |
| | | map.put("name", record.getName()); |
| | | map.put("idFrontImg", Constants.IMAGES_HTTP+record.getIdFrontImg()); |
| | | map.put("idBackImg", Constants.IMAGES_HTTP+record.getIdBackImg()); |
| | | map.put("idFrontImg", record.getIdFrontImg()); |
| | | map.put("idBackImg", record.getIdBackImg()); |
| | | map.put("status", record.getStatus()); |
| | | map.put("kyc_status", record.getStatus()); |
| | | map.put("msg", record.getMsg()); |
| | | map.put("handheldPhoto", Constants.IMAGES_HTTP+record.getHandheldPhoto()); |
| | | map.put("handheldPhoto", record.getHandheldPhoto()); |
| | | map.put("idname", record.getIdName()); |
| | | map.put("idnumber", record.getIdNumber()); |
| | | map.put("idimg_1_path", Constants.IMAGES_HTTP+record.getIdFrontImg()); |
| | | map.put("idimg_2_path", Constants.IMAGES_HTTP+record.getIdBackImg()); |
| | | map.put("idimg_3_path", Constants.IMAGES_HTTP+record.getHandheldPhoto()); |
| | | map.put("idimg_1", Constants.IMAGES_HTTP+record.getIdFrontImg()); |
| | | map.put("idimg_2", Constants.IMAGES_HTTP+record.getIdBackImg()); |
| | | map.put("idimg_3", Constants.IMAGES_HTTP+record.getHandheldPhoto()); |
| | | map.put("idimg_1_path",record.getIdFrontImg()); |
| | | map.put("idimg_2_path",record.getIdBackImg()); |
| | | map.put("idimg_3_path",record.getHandheldPhoto()); |
| | | map.put("idimg_1",record.getIdFrontImg()); |
| | | map.put("idimg_2",record.getIdBackImg()); |
| | | map.put("idimg_3",record.getHandheldPhoto()); |
| | | return Result.succeed(map); |
| | | } |
| | | |