|
|
@@ -5,6 +5,7 @@ import com.aliyun.oss.OSSClientBuilder;
|
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
|
import com.poteviohealth.cgp.common.utils.CgpTool;
|
|
|
import com.poteviohealth.cgp.statistics.model.indto.PriceUploadDto;
|
|
|
+import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
@@ -20,6 +21,7 @@ import java.util.List;
|
|
|
* @author Qin
|
|
|
*/
|
|
|
@Component
|
|
|
+@Log4j2
|
|
|
public class OssUtils {
|
|
|
|
|
|
@Value("${aliyun.oss.accessKeyId}")
|
|
|
@@ -80,6 +82,9 @@ public class OssUtils {
|
|
|
return VaultsResponse.failed("关键参数为空");
|
|
|
}
|
|
|
// 创建OSSClient实例。
|
|
|
+ log.info("endPoint==="+endPoint);
|
|
|
+ log.info("accessKeyId==="+accessKeyId);
|
|
|
+ log.info("secretAccessKey==="+secretAccessKey);
|
|
|
OSS ossClient = new OSSClientBuilder().build(endPoint, accessKeyId, secretAccessKey);
|
|
|
try {
|
|
|
//设置文件名
|