Commit 2b3ff8c10846aae20227949ae73a40d28e180421

Authored by ykxie
1 parent 0171a1b6

fix bug

Showing 1 changed file with 6 additions and 6 deletions
src/js/gb.js
... ... @@ -513,12 +513,12 @@ $(function() {
513 513  
514 514 if(document.URL.indexOf('player') >= 0){
515 515 isReplayPage = true;
516   - // if (_role == 0) {
517   - // playUrl = gxb_api + "/programming/codeReplay/" + _codeReplayId + "/api";
518   - // } else if (_role == 1) {
519   - // playUrl = gxb_api + "/programming/student/studentReplay/" + _codeReplayId + "/api";
520   - // }
521   - playUrl = "https://restful.gaoxiaobang.com/gxb-web/programming/codeReplay/285526/api"
  516 + if (_role == 0) {
  517 + playUrl = gxb_api + "/programming/codeReplay/" + _codeReplayId + "/api";
  518 + } else if (_role == 1) {
  519 + playUrl = gxb_api + "/programming/student/studentReplay/" + _codeReplayId + "/api";
  520 + }
  521 +
522 522 $.ajax({
523 523 type: "get",
524 524 url: playUrl,
... ...