update 数据采集接口

This commit is contained in:
chenbo 2023-12-13 13:40:25 +08:00
parent f36404ae71
commit 1155dac72a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class DataCollectController extends BaseApiController
$land = explode('_', $parmas['username']); // 命名规则land_id id土地表主键id
$device = explode('_', $parmas['topic']); // 命名规则topic_deviceid deviceid为设备主键id
$data = [
'land_id' => $land[1],
'land_id' => $land[3],
'topic'=>$device[1],
'qos'=>$parmas['qos'],
'wind_speed' => $payload['wind_speed'],