fix(设备中心):设备已执行返回数据内容优化

This commit is contained in:
2025-07-21 11:22:25 +08:00
parent 8d0023b171
commit 57ddaff1ab
@@ -89,13 +89,13 @@ public class ApiDeviceController {
// 2. 检查订单状态
String orderStatus = orderCenterService.getOrderStatusByOrderNo(orderNo);
if (!isValidOrderStatus(orderStatus)) {
return Result.succeed("设备已执行");
return Result.failed("设备已处理,请关注订单详情");
}
// 3. 构建控制消息
JsonObject controlMessage = buildControlMessage(control, orderNo, deviceId);
if (controlMessage == null) {
return Result.succeed("暂未开放控制权限");
return Result.failed("暂未开放控制权限");
}
// 4. 发送设备控制请求