Commit 1cf334a8b615fefce6a09f001afd0a28f57a3216

Authored by 商艳涛
1 parent 54995f02

修改本地部署api链接地址

dist/gxb-ide/ToolBox.js
... ... @@ -261,6 +261,11 @@
261 261 }
262 262 if (_role == 0) {
263 263 postData.codeRecordList = codeRecordLists;
  264 + // TODO 不知道为何老师保存代码需要走这一步,
  265 + // compile_api 未定义
  266 + if (!compile_api) {
  267 + var compile_api = "https://restful.gaoxiaobang.com";
  268 + }
264 269 roleUrl = compile_api + "/programming/codeReplay/api"
265 270 }else if (_role == 1) {
266 271 postData.studentRecordList = codeRecordLists;
... ...
dist/js/gb-fuben.js
... ... @@ -1520,6 +1520,10 @@ $(function() {
1520 1520 }
1521 1521 if (_role == 0) {
1522 1522 postData.codeRecordList = codeRecordLists;
  1523 + // TODO compile_api 未定义
  1524 + if (!compile_api) {
  1525 + var compile_api = "https://restful.gaoxiaobang.com";
  1526 + }
1523 1527 var roleUrl = compile_api + "/programming/codeReplay/api"
1524 1528 }else if (_role == 1) {
1525 1529 postData.studentRecordList = codeRecordLists;
... ...
dist/js/gb.js
... ... @@ -1523,6 +1523,10 @@ $(function() {
1523 1523 }
1524 1524 if (_role == 0) {
1525 1525 postData.codeRecordList = codeRecordLists;
  1526 + // TODO compile_api 未定义
  1527 + if (!compile_api) {
  1528 + var compile_api = "https://restful.gaoxiaobang.com";
  1529 + }
1526 1530 var roleUrl = compile_api + "/programming/codeReplay/api"
1527 1531 }else if (_role == 1) {
1528 1532 postData.studentRecordList = codeRecordLists;
... ...
dist/js/gbreplayer-fuben.js
... ... @@ -909,6 +909,10 @@ $(function(){
909 909 replaydto.totaltime = parseInt(keepTimer);
910 910 if(_role == 0){
911 911 replaydto.codeRecordList = recorddatas;
  912 + // TODO compile_api 未定义
  913 + if (!compile_api) {
  914 + var compile_api = "https://restful.gaoxiaobang.com";
  915 + }
912 916 $.ajax({
913 917 type: "post",
914 918 url: compile_api + "/programming/codeReplay/api",
... ...
dist/js/gbreplayer.js
... ... @@ -969,6 +969,10 @@ $(function(){
969 969 replaydto.totaltime = parseInt(keepTimer);
970 970 if(_role == 0){
971 971 replaydto.codeRecordList = recorddatas;
  972 + // TODO compile_api 未定义
  973 + if (!compile_api) {
  974 + var compile_api = "https://restful.gaoxiaobang.com";
  975 + }
972 976 $.ajax({
973 977 type: "post",
974 978 url: compile_api + "/programming/codeReplay/api",
... ...