Commit 189fe0c4 authored by 赵啸非's avatar 赵啸非

添加产品升级功能

parent 7c26f6cd
......@@ -40,7 +40,7 @@
// 是否显示弹出层
open: false,
direction:"rtl",
toString:[
toString:["productId"
],
toDate:[
],
......
......@@ -24,7 +24,7 @@ public class ProductVersionInfo implements Serializable {
/**
* 版本号
*/
private String version;
private Integer version;
/**
* 备注信息
......
......@@ -438,7 +438,9 @@ public class DeviceApiController {
if (ObjectUtils.isEmpty(productVersionEntity))
throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT);
ProductVersionInfo productVersionInfo = new ProductVersionInfo();
BeanUtils.copyProperties(productVersionEntity, productVersionInfo, BeanUtil.getNullPropertyNames(productVersionEntity));
buildDownloadUrl(productVersionEntity,productVersionInfo);
String content = EncryptUtil.myEnscrt(JSON.toJSONString(productVersionInfo), 9, DES_STR, ENCRYPT_STR);
deviceResp.setContent(content);
......
......@@ -149,7 +149,7 @@ POST {{baseUrl}}/api/checkVersion
Content-Type: application/json
{
"deviceCode": "70-4A-0E-BC-EE-8A"
"deviceCode": "18-93-7F-C0-AD-B5"
}
###设备上报
......
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