提交 d068f934 authored 作者: yangli's avatar yangli

.

上级 600d113d
......@@ -131,7 +131,9 @@ public class RemoteControlController {
public R<Void> sendRequest(@RequestParam @NotNull Long minutes)
throws IOException {
JSONObject rsp = JSONUtil.parseObj(HttpUtil.post(gateway + sendControlReqUrl,
JSONUtil.createObj().set("minutes", minutes).set("macAddress", getMacAddress()).toString()));
JSONUtil.createObj().set("controlDate", minutes)
.set("macAddress", getMacAddress())
.set("type", 1).toString()));
if (ObjectUtil.notEqual(rsp.getInt("code"), 0)) return R.error(rsp.getStr("msg"));
return R.success();
}
......
......@@ -46,7 +46,7 @@ apq:
install: /ops/install/getClientList?macAddress={}&pageNum={}&pageSize={}
upgrade: /ops/upgrade/getClientList?macAddress={}&pageNum={}&pageSize={}
add-program: /ops/program/addFacProgram
send-control-req: /
send-control-req: /facility/facility/remoteRequest
# VNC中继服务器
vnc-repeater: 120.24.236.245:5500
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论