From 95fa12fe6a260c1388391003faa796463264a36a Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期四, 15 十月 2026 14:48:04 +0800
Subject: [PATCH] 修改上报称重收集点参数由调整为1/3

---
 src/modules/push/service/open.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/push/service/open.ts b/src/modules/push/service/open.ts
index 216295b..e906482 100644
--- a/src/modules/push/service/open.ts
+++ b/src/modules/push/service/open.ts
@@ -64,7 +64,7 @@
       // rawWeight.uploadTime = data.uploadTime ? new Date(data.uploadTime) : new Date();
       rawWeight.uploadTime = new Date();
       rawWeight.garbageType = data.garbageType;
-      rawWeight.weight = processedWeight;
+      rawWeight.weight = rawWeightValue;
       rawWeight.extraData =
         typeof data.extraData === 'object'
           ? JSON.stringify(data.extraData)
@@ -604,7 +604,7 @@
   private calcProcessedWeight(garbageType: string, weight: number): number {
     const TARE_MAP: Record<string, number> = { SW61: 10 };
     const tareWeight = TARE_MAP[garbageType] ?? 1;
-    return Math.max((weight - tareWeight) / 10, 0);
+    return Math.max((weight - tareWeight) / 3, 0);
   }
 
 }
\ No newline at end of file

--
Gitblit v1.9.1