|
@@ -159,7 +159,7 @@ public class SysUserFacade extends SysUserServiceImpl {
|
|
|
}
|
|
|
//非湘雅医院执行
|
|
|
String captchaId ="";
|
|
|
- if(!"1".equals(getHospitalMark())) {
|
|
|
+ if(0L == getHospitalMark()) {
|
|
|
if ( StringUtils.isEmpty(userLoginVO.getCaptcha())) {
|
|
|
throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
|
|
|
"请输入验证码");
|
|
@@ -191,7 +191,7 @@ public class SysUserFacade extends SysUserServiceImpl {
|
|
|
if (null == jwt) {
|
|
|
throw new CommonException(ServiceErrorCode.GET_TOKEN_FAIL);
|
|
|
}
|
|
|
- if(!"1".equals(getHospitalMark())) {
|
|
|
+ if(0L == getHospitalMark()) {
|
|
|
redisUtils.del("user:captchaIds:" + captchaId);
|
|
|
}
|
|
|
data.setAccessToken(jwt.getAccess_token());
|