Commit e2ab3b5f5757f73a27e76153a9938afefb0de662

Authored by ykxie
1 parent 5c41dce2

fix audio bug

Showing 1 changed file with 10 additions and 19 deletions
src/gxb-ide/Dir.js
... ... @@ -624,26 +624,17 @@
624 624 }
625 625 console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com")
626 626 console.log(audioUrl)
627   -
628   - $.ajax({
629   - type: "get",
630   - url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl,
631   - success: function(res) {
632   - console.log('res============')
633   - console.log(res)
634   - AudioPlayer(audioUrl)
635   - var role = getQuery('role');
636   - if (role == 0) {
637   - if(!isAndroid){
638   - $.AudioPlayer.play()
639   - }else{
640   - playTimes++
641   - }
642   - }else{
643   - CodingEditer.playCoding();
644   - }
  627 + AudioPlayer(audioUrl)
  628 + var role = getQuery('role');
  629 + if (role == 0) {
  630 + if(!isAndroid){
  631 + $.AudioPlayer.play()
  632 + }else{
  633 + playTimes++
645 634 }
646   - })
  635 + }else{
  636 + CodingEditer.playCoding();
  637 + }
647 638 },
648 639 error: function(error) {
649 640 console.log(error)
... ...