dsx 2 лет назад
Родитель
Сommit
2f70c08598

+ 2 - 2
src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

@@ -67,8 +67,8 @@ public class SceneServiceImpl implements ISceneService {
         file.transferTo(tempFile);
 
         String orgImgOssPath = "body_segment/original/" + tempFile.getName();
-//        ossBodySegmentUtil.uploadOss(tempFile.getPath(), orgImgOssPath);
-        fYunFileService.uploadFile(bodySegmentBucket, tempFile.getPath(), orgImgOssPath);
+        ossBodySegmentUtil.uploadOss(tempFile.getPath(), orgImgOssPath);
+//        fYunFileService.uploadFile(bodySegmentBucket, tempFile.getPath(), orgImgOssPath);
 
         BodySegmentStatusBean bodySegmentStatusBean = BodySegmentStatusBean.builder().uuid(uuid).status(CommonOperStatus.WAITING.code()).build();
         redisUtil.hset(RedisKey.SCENE_BODY_SEGMENT, uuid, JSON.toJSONString(bodySegmentStatusBean));

+ 1 - 1
src/main/java/com/fdkankan/scene/util/OssBodySegmentUtil.java

@@ -22,7 +22,7 @@ import java.io.File;
 @RefreshScope
 public class OssBodySegmentUtil {
 
-    @Value("${oss.bodySegment.point:imageseg.cn-shanghai.aliyuncs.com}")
+    @Value("${oss.bodySegment.point:oss-cn-shanghai.aliyuncs.com}")
     private String endPoint;
 
     @Value("${oss.key:LTAIUrvuHqj8pvry}")