Commit 3a5b15ff by 徐高华

MP3

parent e3bf78b7
......@@ -778,7 +778,7 @@ public class QywxOpenTaskController {
@RequestMapping("silk2mp3")
@com.gic.web.common.ano.IgnoreLogin
@IgnoreLogin
public Object silk2Mp3(HttpServletRequest request, String enterpriseId, int type, Long id) throws IOException {
public Object silk2Mp3(HttpServletRequest request, String enterpriseId, int type, Long id , Long relationId) throws IOException {
EnterpriseDTO enterpriseDTO = this.enterpriseService.getEnterpriseById(enterpriseId);
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) request;
List<MultipartFile> list = multiRequest.getMultiFileMap().get("media");
......@@ -786,6 +786,7 @@ public class QywxOpenTaskController {
byte[] data = mf.getBytes();
CloudFileInfo uploadInfo = CloudFileUtil.uploadFile(data, "mp3", CloudFileTypeEnum.AUDIO, enterpriseDTO.getFactoryCode(), CloudFileBusinessOptEnum.COMMON);
log.info("silk2mp3={}",uploadInfo);
this.openQwApiService.updateToMp3(enterpriseId,type,id,relationId,uploadInfo.getOrgFileUrl());
return uploadInfo;
}
......
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