Commit 10fc2c5e authored by shiyu's avatar shiyu

录音

parent 83d0cf74
...@@ -166,7 +166,9 @@ public class WxStorageController { ...@@ -166,7 +166,9 @@ public class WxStorageController {
String audioName = CommConsts.UPLOAD_PRE_VIDEO_DIRECTORY + CommonUtils.getUUID() + lastKey; String audioName = CommConsts.UPLOAD_PRE_VIDEO_DIRECTORY + CommonUtils.getUUID() + lastKey;
qiniuStorage.store(fileInputStream, file.getSize(), file.getContentType(), audioName); qiniuStorage.store(fileInputStream, file.getSize(), file.getContentType(), audioName);
String url = qiniuStorage.generateUrl(audioName); String url = qiniuStorage.generateUrl(audioName);
return url; Map<String, Object> data = new HashMap<>();
data.put("url", url);
return ResponseUtil.ok(data);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment