|
|
@@ -97,7 +97,10 @@ public class IotAppController {
|
|
|
@Operation(summary = "获取最新app版本信息")
|
|
|
@PermitAll
|
|
|
public CommonResult<IotAppRespVO> getNewIotAppRespVO() {
|
|
|
- IotAppDO aNew = iotAppService.getNew();
|
|
|
+ IotAppDO aNew = iotAppService.getNewApk();
|
|
|
+ if (aNew == null) {
|
|
|
+ return success(null);
|
|
|
+ }
|
|
|
return success(BeanUtils.toBean(aNew, IotAppRespVO.class));
|
|
|
}
|
|
|
|
|
|
@@ -105,7 +108,10 @@ public class IotAppController {
|
|
|
@Operation(summary = "获取最新app版本信息 wgt app内更新")
|
|
|
@PermitAll
|
|
|
public CommonResult<IotWgtRespVO> getNewIotWgtRespVO() {
|
|
|
- IotAppDO aNew = iotAppService.getNew();
|
|
|
+ IotAppDO aNew = iotAppService.getNewWgt();
|
|
|
+ if (aNew == null) {
|
|
|
+ return success(null);
|
|
|
+ }
|
|
|
IotWgtRespVO wgt = new IotWgtRespVO();
|
|
|
wgt.setWgtUrl(aNew.getUrl());
|
|
|
wgt.setVersion(aNew.getAppVersion());
|