lyhzzz 10 ماه پیش
والد
کامیت
f0715113e2

+ 2 - 1
src/main/java/com/fdkankan/fusion/service/impl/XfyunImageServiceImpl.java

@@ -57,7 +57,8 @@ public class XfyunImageServiceImpl extends ServiceImpl<IXfyunImageMapper, XfyunI
         Integer image = size%2 ==0 ? size/2 : size /2 +1;
 
         String imageOssPath = path+image +".jpg";
-        ShellUtil.yunDownload(imageOssPath,FilePath.MNT_BASE_PATH + imageOssPath);
+       // ShellUtil.yunDownload(imageOssPath,FilePath.MNT_BASE_PATH + imageOssPath);
+        uploadToOssUtil.downFormAli(imageOssPath,FilePath.MNT_BASE_PATH + imageOssPath);
 
         XfyunWebSocketListener xfyunWebSocketListener = new XfyunWebSocketListener( xfyunConfig.getAppid(), xfyunConfig.getDfQuestion(),FilePath.MNT_BASE_PATH +imageOssPath);
         String xfyunResult = xfyunWebSocketListener.createXfyunResult(xfyunWebSocketListener, xfyunConfig);

+ 13 - 1
src/main/resources/application-local.yaml

@@ -53,4 +53,16 @@ spring:
     basePath: http://test.4dkankan.com/qjkankan
   takeLookService:
     basePath: https://v4-test.4dkankan.com
-    port: 80
+    port: 80
+
+
+upload:
+  type: oss
+  query-path: https://4dkk.4dage.com/
+oss:
+  #point: http://oss-cn-shenzhen-internal.aliyuncs.com
+  point: http://oss-cn-shenzhen.aliyuncs.com
+  key: LTAI5tJwboCj3r4vUNkSmbyX
+  secrey: meDy7VYAWbg8kZCKsoUZcIYQxigWOy
+  bucket: 4dkankan
+  small: ?x-oss-process=image/resize,m_fill,h_%s,w_%s