|
|
@@ -92,11 +92,13 @@ public class WxDeviceScreenAdController extends BaseController { |
|
|
WxDevice wxDevice = findDevice(deviceId); |
|
|
WxDevice wxDevice = findDevice(deviceId); |
|
|
if (wxDevice == null) |
|
|
if (wxDevice == null) |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
|
|
|
WxDevice record = new WxDevice(); |
|
|
|
|
|
record.setId(wxDevice.getId()); |
|
|
if (wxDevice.getFirstHbTime() == null) |
|
|
if (wxDevice.getFirstHbTime() == null) |
|
|
wxDevice.setFirstHbTime(new Date()); |
|
|
|
|
|
wxDevice.setLastHbTime(new Date()); |
|
|
|
|
|
wxDevice.setVersion(paramMap.get("version")); |
|
|
|
|
|
wxDeviceService.saveOrUpdate(wxDevice); |
|
|
|
|
|
|
|
|
record.setFirstHbTime(new Date()); |
|
|
|
|
|
record.setLastHbTime(new Date()); |
|
|
|
|
|
record.setVersion(paramMap.get("version")); |
|
|
|
|
|
wxDeviceService.saveOrUpdate(record); |
|
|
|
|
|
|
|
|
Map<String, String> result = new HashMap<>(); |
|
|
Map<String, String> result = new HashMap<>(); |
|
|
result.put("config",wxDevice.getConfig()); |
|
|
result.put("config",wxDevice.getConfig()); |
|
|
|