|
@@ -222,11 +222,11 @@ function handleAudioUploadBeforeRead(e){
|
|
|
async function handleAudioUploadAfterRead(e){
|
|
|
// console.log(e);
|
|
|
const duration=await handleGetAudioDuration(e.file)
|
|
|
- if(duration>60*15){
|
|
|
- showToast('音频时长不得超过15分钟')
|
|
|
- return
|
|
|
- }
|
|
|
- temAudioData.time=duration
|
|
|
+ // if(duration>60*15){
|
|
|
+ // showToast('音频时长不得超过15分钟')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ temAudioData.time=duration||0
|
|
|
temAudioData.size=e.file.size/1024/1024 //单位MB
|
|
|
temAudioData.name=e.file.name
|
|
|
console.log('音频数据temAudioData',temAudioData);
|