连接修改

This commit is contained in:
谢洪龙 2017-09-04 10:19:12 +08:00
parent 456730cc69
commit 3f8cc7b0e6
2 changed files with 7 additions and 3 deletions

View File

@ -27,7 +27,11 @@ public class PublicAction {
*/ */
@RequestMapping("/index.do") @RequestMapping("/index.do")
public ModelAndView login(ModelMap map) { public ModelAndView login(ModelMap map) {
map.put("socketAddress", address.getIp() + ":" + address.getServerPort() + "/"); String port = "8080";
// if (address.getServerPort().equals("8080")) {
// port = "7080";
// }
map.put("socketAddress", address.getIp() + ":" + port + "/");
return new ModelAndView("index", map); return new ModelAndView("index", map);
} }

View File

@ -52,8 +52,8 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
var data = obj(id,mac.toString(),hardType.toString()); var data = obj(id,mac.toString(),hardType.toString());
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: "http://192.168.199.129:8080/IfishSystemEnglish/saveMacAddress?rm="+Math.random(), //url: "http://192.168.199.129:8080/IfishSystemEnglish/saveMacAddress?rm="+Math.random(),
//url: "https://bg.ifish7.com/page/public/saveMacAddress.do?rm="+Math.random(), url: "https://bg.ifish7.com/page/public/saveMacAddress.do?rm="+Math.random(),
data: {"subStr":data}, data: {"subStr":data},
dataType: "json", dataType: "json",
success:function(re){ success:function(re){