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