Merge branch 'USVT-132' into 'master'

USVT-132 因为编译错误修改 AWS 获得参数的方法

See merge request usvisatrack/usvisatrack.api.service!17
This commit is contained in:
YuCheng Hu 2023-01-05 14:53:22 +00:00
commit 0417d4325a
1 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ import com.mailgun.api.v3.MailgunMessagesApi;
import com.mailgun.client.MailgunClient;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@ -79,9 +80,10 @@ public class AwsUtils {
// Update the map
for (Map.Entry<String, String> entry : parameterConfMap.entrySet()) {
parameterConfMap.put(entry.getKey(), awsKVMap.get(parameterStorePath + "/" + entry.getKey()).getValue());
if (ObjectUtils.isNotEmpty(awsKVMap.get(parameterStorePath + "/" + entry.getKey()))) {
parameterConfMap.put(entry.getKey(), awsKVMap.get(parameterStorePath + "/" + entry.getKey()).getValue());
}
}
return parameterConfMap;
}
}