Commit 7046bfe8e532816db8f7c4053e7192e0cbd6a0ad
1 parent
b13b4f7d
修改本地部署api链接地址
Showing
6 changed files
with
7 additions
and
6 deletions
src/gxb-ide/ToolBox.js
| ... | ... | @@ -261,7 +261,7 @@ |
| 261 | 261 | } |
| 262 | 262 | if (_role == 0) { |
| 263 | 263 | postData.codeRecordList = codeRecordLists; |
| 264 | - roleUrl = gxb_api + "/programming/codeReplay/api" | |
| 264 | + roleUrl = compile_api + "/programming/codeReplay/api" | |
| 265 | 265 | }else if (_role == 1) { |
| 266 | 266 | postData.studentRecordList = codeRecordLists; |
| 267 | 267 | roleUrl = gxb_api + "/programming/student/studentReplay/api" | ... | ... |
src/index.html
| ... | ... | @@ -32,7 +32,8 @@ |
| 32 | 32 | </style> |
| 33 | 33 | |
| 34 | 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 | 37 | // var gxb_api = "http://192.168.80.236:8080" |
| 37 | 38 | |
| 38 | 39 | </script> | ... | ... |
src/js/gb-fuben.js
| ... | ... | @@ -1520,7 +1520,7 @@ $(function() { |
| 1520 | 1520 | } |
| 1521 | 1521 | if (_role == 0) { |
| 1522 | 1522 | postData.codeRecordList = codeRecordLists; |
| 1523 | - var roleUrl = gxb_api + "/programming/codeReplay/api" | |
| 1523 | + var roleUrl = compile_api + "/programming/codeReplay/api" | |
| 1524 | 1524 | }else if (_role == 1) { |
| 1525 | 1525 | postData.studentRecordList = codeRecordLists; |
| 1526 | 1526 | var roleUrl = gxb_api + "/programming/student/studentReplay/api" | ... | ... |
src/js/gb.js
| ... | ... | @@ -1523,7 +1523,7 @@ $(function() { |
| 1523 | 1523 | } |
| 1524 | 1524 | if (_role == 0) { |
| 1525 | 1525 | postData.codeRecordList = codeRecordLists; |
| 1526 | - var roleUrl = gxb_api + "/programming/codeReplay/api" | |
| 1526 | + var roleUrl = compile_api + "/programming/codeReplay/api" | |
| 1527 | 1527 | }else if (_role == 1) { |
| 1528 | 1528 | postData.studentRecordList = codeRecordLists; |
| 1529 | 1529 | var roleUrl = gxb_api + "/programming/student/studentReplay/api" | ... | ... |
src/js/gbreplayer-fuben.js
| ... | ... | @@ -911,7 +911,7 @@ $(function(){ |
| 911 | 911 | replaydto.codeRecordList = recorddatas; |
| 912 | 912 | $.ajax({ |
| 913 | 913 | type: "post", |
| 914 | - url: gxb_api + "/programming/codeReplay/api", | |
| 914 | + url: compile_api + "/programming/codeReplay/api", | |
| 915 | 915 | data: JSON.stringify(replaydto), |
| 916 | 916 | dataType: "json", |
| 917 | 917 | contentType: "application/json", | ... | ... |
src/js/gbreplayer.js
| ... | ... | @@ -971,7 +971,7 @@ $(function(){ |
| 971 | 971 | replaydto.codeRecordList = recorddatas; |
| 972 | 972 | $.ajax({ |
| 973 | 973 | type: "post", |
| 974 | - url: gxb_api + "/programming/codeReplay/api", | |
| 974 | + url: compile_api + "/programming/codeReplay/api", | |
| 975 | 975 | data: JSON.stringify(replaydto), |
| 976 | 976 | dataType: "json", |
| 977 | 977 | contentType: "application/json", | ... | ... |