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,6 +304,8 @@ | ||
| 304 | smartIndent: false, | 304 | smartIndent: false, |
| 305 | // theme: "erlang-dark", | 305 | // theme: "erlang-dark", |
| 306 | onChange: function(em, changeobj) { | 306 | onChange: function(em, changeobj) { |
| 307 | + console.log('----------em---------') | ||
| 308 | + console.log(em.getWrapperElement().getAttribute('id')) | ||
| 307 | console.log(Dir.getCurrentEditor(em.getWrapperElement().getAttribute('id'))) | 309 | console.log(Dir.getCurrentEditor(em.getWrapperElement().getAttribute('id'))) |
| 308 | var _pauseValue = CodingEditer.getCodeMirrorValue(); | 310 | var _pauseValue = CodingEditer.getCodeMirrorValue(); |
| 309 | if (CodingEditer.recording_status) { | 311 | if (CodingEditer.recording_status) { |
src/gxb-ide/Dir.js
| @@ -622,13 +622,15 @@ | @@ -622,13 +622,15 @@ | ||
| 622 | if(isAndroid){ | 622 | if(isAndroid){ |
| 623 | playTimes++ | 623 | playTimes++ |
| 624 | } | 624 | } |
| 625 | + console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com") | ||
| 626 | + console.log(audioUrl) | ||
| 625 | 627 | ||
| 626 | $.ajax({ | 628 | $.ajax({ |
| 627 | type: "get", | 629 | type: "get", |
| 628 | url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl, | 630 | url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl, |
| 629 | - dataType: "json", | ||
| 630 | - contentType: "application/json", | ||
| 631 | success: function(res) { | 631 | success: function(res) { |
| 632 | + console.log('res============') | ||
| 633 | + console.log(res) | ||
| 632 | AudioPlayer(audioUrl) | 634 | AudioPlayer(audioUrl) |
| 633 | var role = getQuery('role'); | 635 | var role = getQuery('role'); |
| 634 | if (role == 0) { | 636 | if (role == 0) { |
src/js/c.js
| @@ -32,7 +32,7 @@ $(function(){ | @@ -32,7 +32,7 @@ $(function(){ | ||
| 32 | .load(function() { | 32 | .load(function() { |
| 33 | recordReady() | 33 | recordReady() |
| 34 | }) | 34 | }) |
| 35 | - iterm.compileResult() | 35 | + Iterm.compileResult() |
| 36 | }, | 36 | }, |
| 37 | stopCallback: function(){ | 37 | stopCallback: function(){ |
| 38 | $("#countdown").find('img').attr('src', '') | 38 | $("#countdown").find('img').attr('src', '') |
| @@ -43,10 +43,10 @@ $(function(){ | @@ -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 | console.log(ide); | 51 | console.log(ide); |
| 52 | 52 |