|
@@ -101,10 +101,12 @@ public class HealthCodeServiceImpl implements HealthCodeService {
|
|
|
throw new ServiceException(700, "token为空哦");
|
|
|
}
|
|
|
|
|
|
- if (StrUtil.isEmpty(shortTermDTO.getHealthCode())) {
|
|
|
- if (StringUtils.isBlank(shortTermDTO.getIdNumber()) && StringUtils.isBlank(shortTermDTO.getName())) {
|
|
|
- throw new ServiceException(701, "身份证和姓名为空哦");
|
|
|
- }
|
|
|
+ if(TokenEnum.tokenOf(shortTermDTO.getToken()) == null){
|
|
|
+ throw new ServiceException(700, "token校验失败");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isBlank(shortTermDTO.getIdNumber())) {
|
|
|
+ throw new ServiceException(701, "身份证为空哦");
|
|
|
}
|
|
|
|
|
|
HealtCodeUserVO userVO = guizhouHealthServer.gzhHealthByIdCard(new GzhHealthDTO().setCardId(shortTermDTO.getIdNumber()));
|