Commit 1af9c465 authored by 赵啸非's avatar 赵啸非

添加设备版本信息

parent 0945855e
...@@ -443,6 +443,7 @@ public class DeviceApiController { ...@@ -443,6 +443,7 @@ public class DeviceApiController {
buildDownloadUrl(productVersionEntity,productVersionInfo); buildDownloadUrl(productVersionEntity,productVersionInfo);
String content = EncryptUtil.myEnscrt(JSON.toJSONString(productVersionInfo), 9, DES_STR, ENCRYPT_STR); String content = EncryptUtil.myEnscrt(JSON.toJSONString(productVersionInfo), 9, DES_STR, ENCRYPT_STR);
deviceResp.setContent(content); deviceResp.setContent(content);
rsp.setData(deviceResp);
} catch (AppException e) { } catch (AppException e) {
log.error("接收数据失败", e); log.error("接收数据失败", e);
rsp.setCode(e.getCode()); rsp.setCode(e.getCode());
......
...@@ -141,6 +141,16 @@ Content-Type: application/json ...@@ -141,6 +141,16 @@ Content-Type: application/json
} }
###设备版本检查
POST {{baseUrl}}/api/checkVersion
Content-Type: application/json
{
"deviceCode": "70-4A-0E-BC-EE-8A"
}
###设备上报 ###设备上报
POST {{baseUrl}}/api/upload POST {{baseUrl}}/api/upload
Content-Type: application/json Content-Type: application/json
......
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