修复路径规划任务的取消接口的入参的结构去掉deviceid,测试通过。

This commit is contained in:
2026-09-10 08:58:04 +08:00
parent d76bcdcdf2
commit b4bedd9737
2 changed files with 2 additions and 3 deletions

View File

@@ -95,10 +95,9 @@ class DeviceTaskDatasourceImpl implements DeviceTaskDatasource {
}) async {
final url = '${HttpApiConsts.baseUrl}/iot/deviceTask/cancelTask';
final body = {
'deviceId': deviceId,
'taskId': taskId,
'orgId': orgId,
'siteId': siteId,
'orgId': orgId,
'forceCancel': forceCancel,
};
_logger.logWithLevel('[cancelTask] 请求: POST $url');

View File

@@ -450,7 +450,7 @@ class DevicesCubit extends Cubit<DevicesState> {
state.copyWith(
isLoading: false,
workRecords: state.workRecords
?.where((record) => record != workName)
?.where((record) => record['workName'] != workName)
.toList(),
),
),