Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f02ffeac
authored
Jun 27, 2024
by
yixinjj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增必填filePath字段
1 parent
9af79ac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
hybrid/html/index.html
hybrid/html/js/OSSUpLoader.js
hybrid/html/index.html
View file @
f02ffea
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
*/
*/
window
.
msgFromUniapp
=
function
(
accessKeyId
,
accessKeySecret
,
stsToken
,
fileName
,
filePath
,
options
=
{})
{
window
.
msgFromUniapp
=
function
(
accessKeyId
,
accessKeySecret
,
stsToken
,
fileName
,
filePath
,
options
=
{})
{
if
(
!
accessKeyId
||
!
accessKeySecret
||
!
stsToken
||
!
fileName
||
!
filePath
)
{
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
{
try
{
// 使用 Object.assign 合并默认配置参数和传入的 options 参数
// 使用 Object.assign 合并默认配置参数和传入的 options 参数
...
...
hybrid/html/js/OSSUpLoader.js
View file @
f02ffea
...
@@ -10,7 +10,7 @@ class OSSUpLoader {
...
@@ -10,7 +10,7 @@ class OSSUpLoader {
/**
/**
* 文件的 MIME 类型
* 文件的 MIME 类型
*/
*/
mime
=
"audio/mp
eg
"
;
mime
=
"audio/mp
3
"
;
/**
/**
* 本地保存文件路径(待上传文件路径)
* 本地保存文件路径(待上传文件路径)
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment