系统初始化时健康计划调整(包括增加延时任务)

This commit is contained in:
2025-11-10 14:11:39 +08:00
parent ca8e5ff867
commit 19d55eb09b
4 changed files with 60 additions and 11 deletions

View File

@@ -2,7 +2,6 @@ package task
import (
"context"
"encoding/json"
"fmt"
"sync"
"time"
@@ -114,7 +113,7 @@ func (r *ReleaseFeedWeightTask) getNowWeight(ctx context.Context) (float64, erro
}
wg := &models.WeightData{}
err = json.Unmarshal(sensorData.Data, wg)
err = sensorData.ParseData(wg)
if err != nil {
logger.Errorf("反序列化设备 %v 最新传感器数据失败: %v , 日志ID: %v", r.mixingTankDeviceID, err, r.claimedLog.ID)
return 0, err