diff --git a/app/api/controller/DataCollectController.php b/app/api/controller/DataCollectController.php index fca8db06..3784c5c6 100644 --- a/app/api/controller/DataCollectController.php +++ b/app/api/controller/DataCollectController.php @@ -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() ];