Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

发现bug,视频文件上传链接地址获取不对 #61

Closed
yunemr opened this issue Sep 7, 2018 · 7 comments
Closed

发现bug,视频文件上传链接地址获取不对 #61

yunemr opened this issue Sep 7, 2018 · 7 comments
Assignees

Comments

@yunemr
Copy link

yunemr commented Sep 7, 2018

视频文件上传链接地址获取不对
我修改了源码video.js文件中741行如下:
uploadVideoList.push({ 'url': res.url, 'type': res.mimetype, 'original':res.original || '' });
修改为:
uploadVideoList.push(res);

@zuohuadong
Copy link
Member

@

@Tian-Hun
Copy link
Member

上传逻辑在service里处理

@yunemr
Copy link
Author

yunemr commented Sep 18, 2018

@Tian-Hun 20180918171443319.png

@Tian-Hun
Copy link
Member

@yunemr 看service注释,写的很清楚啊
image

@yunemr
Copy link
Author

yunemr commented Sep 18, 2018

@Tian-Hun 是呀,用默认的没问题。但是service中url只是默认的。用户可以修改为其他,比如:filepath,哪你哪个插入视频的时候,连接地址就获取不到。

@Tian-Hun
Copy link
Member

@yunemr 嗯 改成你接口里返回的字段名就OK了呗,纠结什么?

@yunemr
Copy link
Author

yunemr commented Sep 18, 2018

@Tian-Hun 对,我是修改为我接口的字段名,发现在notadd/neditor/blob/master/dialogs/video/video.js中的第741行,
uploadVideoList.push({ 'url': res.url, 'type': res.mimetype, 'original':res.original || '' });
这里保存的还是默认的url。在插入是取值使用我接口的字段名,就取不到。
这里建议修改为:
uploadVideoList.push(res);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants