Commit 7046bfe8e532816db8f7c4053e7192e0cbd6a0ad

Authored by 商艳涛
1 parent b13b4f7d

修改本地部署api链接地址

src/gxb-ide/ToolBox.js
@@ -261,7 +261,7 @@ @@ -261,7 +261,7 @@
261 } 261 }
262 if (_role == 0) { 262 if (_role == 0) {
263 postData.codeRecordList = codeRecordLists; 263 postData.codeRecordList = codeRecordLists;
264 - roleUrl = gxb_api + "/programming/codeReplay/api" 264 + roleUrl = compile_api + "/programming/codeReplay/api"
265 }else if (_role == 1) { 265 }else if (_role == 1) {
266 postData.studentRecordList = codeRecordLists; 266 postData.studentRecordList = codeRecordLists;
267 roleUrl = gxb_api + "/programming/student/studentReplay/api" 267 roleUrl = gxb_api + "/programming/student/studentReplay/api"
src/index.html
@@ -32,7 +32,8 @@ @@ -32,7 +32,8 @@
32 </style> 32 </style>
33 33
34 <script> 34 <script>
35 - var gxb_api = "https://restful.gaoxiaobang.com"; 35 + var compile_api = "https://restful.gaoxiaobang.com";
  36 + var gxb_api = "http://bdlab.cczu.edu.cn/study";
36 // var gxb_api = "http://192.168.80.236:8080" 37 // var gxb_api = "http://192.168.80.236:8080"
37 38
38 </script> 39 </script>
src/js/gb-fuben.js
@@ -1520,7 +1520,7 @@ $(function() { @@ -1520,7 +1520,7 @@ $(function() {
1520 } 1520 }
1521 if (_role == 0) { 1521 if (_role == 0) {
1522 postData.codeRecordList = codeRecordLists; 1522 postData.codeRecordList = codeRecordLists;
1523 - var roleUrl = gxb_api + "/programming/codeReplay/api" 1523 + var roleUrl = compile_api + "/programming/codeReplay/api"
1524 }else if (_role == 1) { 1524 }else if (_role == 1) {
1525 postData.studentRecordList = codeRecordLists; 1525 postData.studentRecordList = codeRecordLists;
1526 var roleUrl = gxb_api + "/programming/student/studentReplay/api" 1526 var roleUrl = gxb_api + "/programming/student/studentReplay/api"
src/js/gb.js
@@ -1523,7 +1523,7 @@ $(function() { @@ -1523,7 +1523,7 @@ $(function() {
1523 } 1523 }
1524 if (_role == 0) { 1524 if (_role == 0) {
1525 postData.codeRecordList = codeRecordLists; 1525 postData.codeRecordList = codeRecordLists;
1526 - var roleUrl = gxb_api + "/programming/codeReplay/api" 1526 + var roleUrl = compile_api + "/programming/codeReplay/api"
1527 }else if (_role == 1) { 1527 }else if (_role == 1) {
1528 postData.studentRecordList = codeRecordLists; 1528 postData.studentRecordList = codeRecordLists;
1529 var roleUrl = gxb_api + "/programming/student/studentReplay/api" 1529 var roleUrl = gxb_api + "/programming/student/studentReplay/api"
src/js/gbreplayer-fuben.js
@@ -911,7 +911,7 @@ $(function(){ @@ -911,7 +911,7 @@ $(function(){
911 replaydto.codeRecordList = recorddatas; 911 replaydto.codeRecordList = recorddatas;
912 $.ajax({ 912 $.ajax({
913 type: "post", 913 type: "post",
914 - url: gxb_api + "/programming/codeReplay/api", 914 + url: compile_api + "/programming/codeReplay/api",
915 data: JSON.stringify(replaydto), 915 data: JSON.stringify(replaydto),
916 dataType: "json", 916 dataType: "json",
917 contentType: "application/json", 917 contentType: "application/json",
src/js/gbreplayer.js
@@ -971,7 +971,7 @@ $(function(){ @@ -971,7 +971,7 @@ $(function(){
971 replaydto.codeRecordList = recorddatas; 971 replaydto.codeRecordList = recorddatas;
972 $.ajax({ 972 $.ajax({
973 type: "post", 973 type: "post",
974 - url: gxb_api + "/programming/codeReplay/api", 974 + url: compile_api + "/programming/codeReplay/api",
975 data: JSON.stringify(replaydto), 975 data: JSON.stringify(replaydto),
976 dataType: "json", 976 dataType: "json",
977 contentType: "application/json", 977 contentType: "application/json",