连接修改
This commit is contained in:
parent
456730cc69
commit
3f8cc7b0e6
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue