| | |
| | | public Result<?> examine(@RequestBody @Valid RealNameExamineModel model){ |
| | | HighLevelAuthRecord highLevelAuthRecord= highLevelAuthRecordService.getById(model.getId()); |
| | | if (highLevelAuthRecord==null){ |
| | | throw new YamiShopBindException("参数错误"); |
| | | throw new YamiShopBindException("Invalid parameters"); |
| | | } |
| | | int status= highLevelAuthRecord.getStatus(); |
| | | if (model.getType()==1){ |
| | | if (status < 1){ |
| | | throw new YamiShopBindException("认证记录已操作过了"); |
| | | throw new YamiShopBindException("Verification record has already been processed"); |
| | | } |
| | | highLevelAuthRecord.setStatus(2); |
| | | highLevelAuthRecord.setOperationTime(new Date()); |
| | |
| | | } |
| | | if (model.getType()==2){ |
| | | if (status > 1){ |
| | | throw new YamiShopBindException("认证记录已操作过了"); |
| | | throw new YamiShopBindException("Verification record has already been processed"); |
| | | } |
| | | highLevelAuthRecord.setStatus(3); |
| | | highLevelAuthRecord.setMsg(model.getContent()); |