| | |
| | | realNameAuthRecord = new RealNameAuthRecord(); |
| | | } |
| | | |
| | | if (model.getIdBackImg() == null || model.getIdBackImg().isEmpty()) { |
| | | throw new YamiShopBindException("请上传完整证件信息"); |
| | | } |
| | | if (model.getIdFrontImg() == null || model.getIdFrontImg().isEmpty()) { |
| | | throw new YamiShopBindException("请上传完整证件信息"); |
| | | } |
| | | |
| | | if (model.getIdNumber().length() > 50) { |
| | | throw new YamiShopBindException("证件号码长度超过50"); |
| | | } |
| | |
| | | throw new YamiShopBindException("实名姓名长度超过50"); |
| | | } |
| | | |
| | | String authcode = identifyingCodeTimeWindowService.getAuthCode(model.getPhone()); |
| | | /*String authcode = identifyingCodeTimeWindowService.getAuthCode(model.getPhone()); |
| | | if (authcode == null || !authcode.equals(model.getCode())) { |
| | | throw new YamiShopBindException("验证码不正确"); |
| | | } |
| | | }*/ |
| | | |
| | | Date now = new Date(); |
| | | BeanUtils.copyProperties(model, realNameAuthRecord); |