|
|
@ -47,8 +47,9 @@ public class TXYSmsService {
|
|
|
* 初始化接口参数
|
|
|
*/
|
|
|
private void init(){
|
|
|
if(redisTemplate.hasKey(key+ ":SecretId")){
|
|
|
SecretId = redisTemplate.opsForValue().get(key + ":SecretId");
|
|
|
String keyS = ":SecretId1";
|
|
|
if(redisTemplate.hasKey(key+ keyS)){
|
|
|
SecretId = redisTemplate.opsForValue().get(key + keyS);
|
|
|
SecretKey = redisTemplate.opsForValue().get(key + ":SecretKey");
|
|
|
signName = redisTemplate.opsForValue().get(key + ":signName");
|
|
|
smsSdkAppId = redisTemplate.opsForValue().get(key + ":smsSdkAppId");
|
|
|
@ -60,7 +61,7 @@ public class TXYSmsService {
|
|
|
for (WlyyHospitalSysDictDO wlyyHospitalSysDictDO:dictDOList){
|
|
|
if (wlyyHospitalSysDictDO.getDictCode().equalsIgnoreCase("SecretId")){
|
|
|
SecretId=wlyyHospitalSysDictDO.getDictValue();
|
|
|
redisTemplate.opsForValue().set(key + ":SecretId",SecretId);
|
|
|
redisTemplate.opsForValue().set(key + keyS,SecretId);
|
|
|
}else if (wlyyHospitalSysDictDO.getDictCode().equalsIgnoreCase("SecretKey")){
|
|
|
SecretKey=wlyyHospitalSysDictDO.getDictValue();
|
|
|
redisTemplate.opsForValue().set(key + ":SecretKey",SecretKey);
|