update 采集是判断设备重连以及监听设备断开链接的时间

This commit is contained in:
chenbo 2023-12-14 11:40:11 +08:00
parent f914ec67a6
commit 131db42a6b
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ class DataCollectController extends BaseApiController
$addData = [
'land_id' => $land[3],
'device_id' => $item['device_id'],
'last_online_time' => $parmas['disconnected_at'],
'disconnected_time' => $parmas['disconnected_at'],
'last_online_time' => $parmas['disconnected_at']/1000,
'disconnected_time' => $parmas['disconnected_at']/1000,
'create_time' => time(),
'update_time' => time()
];