|
@ -1,7 +1,6 @@
|
|
|
package com.yihu.jw.security.oauth2.core.redis;
|
|
|
|
|
|
import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO;
|
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
import com.yihu.jw.security.dao.patient.WlyyHospitalSysDictDao;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
@ -58,6 +57,13 @@ public class WlyyRedisVerifyCodeService {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
//新增白名单判断-白名单验证码默认123456
|
|
|
if("123456".equals(code)){
|
|
|
WlyyHospitalSysDictDO dictDO = wlyyHospitalSysDictDao.findOneByDictNameAndDictCode("sms_captcha_white",username);
|
|
|
if(dictDO!=null){
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
String key = client_id + ":" + username + KEY_SUFFIX;
|
|
|
String _code = (String) redisTemplate.opsForValue().get(key);
|
|
|
if (null == _code) {
|