Commit f02ffeac by yixinjj

新增必填filePath字段

1 parent 9af79ac9
......@@ -25,7 +25,7 @@
*/
window.msgFromUniapp = function (accessKeyId, accessKeySecret, stsToken, fileName, filePath, options = {}) {
if (!accessKeyId || !accessKeySecret || !stsToken || !fileName || !filePath) {
throw new Error('accessKeyId,accessKeySecret,stsToken,fileName is required')
throw new Error('accessKeyId,accessKeySecret,stsToken,fileName,filePath is required')
}
try {
// 使用 Object.assign 合并默认配置参数和传入的 options 参数
......
......@@ -10,7 +10,7 @@ class OSSUpLoader {
/**
* 文件的 MIME 类型
*/
mime = "audio/mpeg";
mime = "audio/mp3";
/**
* 本地保存文件路径(待上传文件路径)
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!