Commit 6bd2092efaf8cf1417e01d5231594d8270b5bc17
1 parent
5f07ff38
fix bug
Showing
3 changed files
with
11 additions
and
7 deletions
src/gxb-ide/CodingEditer.js
| ... | ... | @@ -304,6 +304,8 @@ |
| 304 | 304 | smartIndent: false, |
| 305 | 305 | // theme: "erlang-dark", |
| 306 | 306 | onChange: function(em, changeobj) { |
| 307 | + console.log('----------em---------') | |
| 308 | + console.log(em.getWrapperElement().getAttribute('id')) | |
| 307 | 309 | console.log(Dir.getCurrentEditor(em.getWrapperElement().getAttribute('id'))) |
| 308 | 310 | var _pauseValue = CodingEditer.getCodeMirrorValue(); |
| 309 | 311 | if (CodingEditer.recording_status) { | ... | ... |
src/gxb-ide/Dir.js
| ... | ... | @@ -622,13 +622,15 @@ |
| 622 | 622 | if(isAndroid){ |
| 623 | 623 | playTimes++ |
| 624 | 624 | } |
| 625 | + console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com") | |
| 626 | + console.log(audioUrl) | |
| 625 | 627 | |
| 626 | 628 | $.ajax({ |
| 627 | 629 | type: "get", |
| 628 | 630 | url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl, |
| 629 | - dataType: "json", | |
| 630 | - contentType: "application/json", | |
| 631 | 631 | success: function(res) { |
| 632 | + console.log('res============') | |
| 633 | + console.log(res) | |
| 632 | 634 | AudioPlayer(audioUrl) |
| 633 | 635 | var role = getQuery('role'); |
| 634 | 636 | if (role == 0) { | ... | ... |
src/js/c.js
| ... | ... | @@ -32,7 +32,7 @@ $(function(){ |
| 32 | 32 | .load(function() { |
| 33 | 33 | recordReady() |
| 34 | 34 | }) |
| 35 | - iterm.compileResult() | |
| 35 | + Iterm.compileResult() | |
| 36 | 36 | }, |
| 37 | 37 | stopCallback: function(){ |
| 38 | 38 | $("#countdown").find('img').attr('src', '') |
| ... | ... | @@ -43,10 +43,10 @@ $(function(){ |
| 43 | 43 | }); |
| 44 | 44 | |
| 45 | 45 | // 编译控制台 |
| 46 | - var iterm = new Iterm({ | |
| 47 | - userId: _userId, | |
| 48 | - languageId: _languageid | |
| 49 | - }); | |
| 46 | + // var iterm = new Iterm({ | |
| 47 | + // userId: _userId, | |
| 48 | + // languageId: _languageid | |
| 49 | + // }); | |
| 50 | 50 | |
| 51 | 51 | console.log(ide); |
| 52 | 52 | ... | ... |