Commit 198525a5 authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 7c6bee8c
...@@ -142,7 +142,8 @@ public class DeviceApiController { ...@@ -142,7 +142,8 @@ public class DeviceApiController {
log.info("【设备注册】【请求体】--> " + JSONObject.toJSONString(req)); log.info("【设备注册】【请求体】--> " + JSONObject.toJSONString(req));
String serverName = request.getServerName(); String serverName = request.getServerName();
Integer serverPort = request.getServerPort(); Integer serverPort = request.getServerPort();
log.info("request uri:{},request url:{},serverName:{},serverPort:{}", request.getRequestURI(), request.getRequestURL(), serverName,serverPort); String xforwardedfor = request.getHeader("x-forwarded-for");
log.info("request uri:{},request url:{},serverName:{},serverPort:{},xforwardedfor:{}", request.getRequestURI(), request.getRequestURL(), serverName,serverPort,xforwardedfor);
ApiResp<DeviceResp> rsp = new ApiResp<>(); ApiResp<DeviceResp> rsp = new ApiResp<>();
rsp.setCode(ApiRespCodeEnum.SUCCESS.getValue()); rsp.setCode(ApiRespCodeEnum.SUCCESS.getValue());
DeviceResp deviceResp = new DeviceResp(); DeviceResp deviceResp = new DeviceResp();
......
...@@ -89,7 +89,7 @@ POST {{baseUrl}}/api/register ...@@ -89,7 +89,7 @@ POST {{baseUrl}}/api/register
Content-Type: application/json Content-Type: application/json
{ {
"deviceCode": "18-93-7F-C0-AD-B1" "deviceCode": "7E-03-67-08-7F-30"
} }
> {% > {%
......
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