Commit d2ae0f71 authored by 赵啸非's avatar 赵啸非

添加修改终端访问ip

parent dcf4c122
...@@ -275,6 +275,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se ...@@ -275,6 +275,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
code = VALUE_RESULT_FAILURE; code = VALUE_RESULT_FAILURE;
log.error("服务ip更新失败", e); log.error("服务ip更新失败", e);
ret.put(KEY_RESULT_MSG, e.getMessage()); ret.put(KEY_RESULT_MSG, e.getMessage());
return ret.toJSONString();
} }
ret.put(KEY_RESULT_CODE, code); ret.put(KEY_RESULT_CODE, code);
ret.put(KEY_RESULT_MSG, "服务ip更新成功"); ret.put(KEY_RESULT_MSG, "服务ip更新成功");
...@@ -283,6 +284,36 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se ...@@ -283,6 +284,36 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
} }
/**
* 更新终端访问服务端ip地址
*
* @return
*/
@GetMapping("/serverIp/view")
public String serverIpUpdate() {
JSONObject ret = new JSONObject();
SetupProjectEntity setupProjectEntity = new SetupProjectEntity();
setupProjectEntity.initAttrValue();
SetupProjectEntity setupProjectBase = this.service.selectOne(new SetupProjectQuery().projectCode(基础服务后端.getValue()));
if (!ObjectUtils.isEmpty(setupProjectBase)) {
setupProjectEntity.setClientToServerIp(setupProjectBase.getClientToServerIp());
setupProjectEntity.setInnerServerIp(setupProjectBase.getInnerServerIp());
}
SetupProjectEntity setupProjectPHP = this.service.selectOne(new SetupProjectQuery().projectCode(排号系统PHP后端.getValue()));
if (!ObjectUtils.isEmpty(setupProjectPHP)) {
setupProjectEntity.setDomain(setupProjectPHP.getDomain());
}
ret.put(KEY_RESULT_DATA, setupProjectEntity);
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "服务ip查看成功!");
return ret.toJSONString();
}
/** /**
* 更新基础服务子区域 * 更新基础服务子区域
* *
......
...@@ -100,7 +100,9 @@ POST {{baseUrl}}/setup/project/serverIp/update ...@@ -100,7 +100,9 @@ POST {{baseUrl}}/setup/project/serverIp/update
Content-Type: application/json Content-Type: application/json
{ {
"clientToServerIp": "192.168.0.250" "clientToServerIp": "192.168.0.250",
"domain": "www.baidu.com",
"innerServerIp": "192.168.0.1"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment