Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07a7e86

Browse files
committed
[CHG]播放失败,支持通过promise返回错误提示
1 parent 9931cc9 commit 07a7e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ezuikit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ function addCss(filepath, callback) {
15171517
if(openSoundRT == 0) {
15181518
_this.log('开启声音成功', data)
15191519
}else {
1520-
_this.log('开启声音失败', 'error', err)
1520+
_this.log('开启声音失败', 'error')
15211521
}
15221522
console.log("openSoundRT", openSoundRT)
15231523
}, 100)
@@ -1580,7 +1580,7 @@ function addCss(filepath, callback) {
15801580
playParams.handleError({ retcode: err.oError.errorCode, msg: errorInfo ? errorInfo.description : '其他错误' });
15811581
}
15821582
if ((index + 1) === _this.opt.sources.length) {
1583-
resolve({code : -1})
1583+
resolve({ retcode: err.oError.errorCode, msg: errorInfo ? errorInfo.description : '其他错误' })
15841584
}
15851585
})
15861586

0 commit comments

Comments
 (0)