From ccc970e575ef3f3e5c67af8da210263f4ac549f9 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 10 四月 2026 16:44:55 +0800
Subject: [PATCH] 2026.4.10

---
 src/debug/debugdata.js |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/debug/debugdata.js b/src/debug/debugdata.js
index 6964a64..c20ebf8 100644
--- a/src/debug/debugdata.js
+++ b/src/debug/debugdata.js
@@ -68,6 +68,12 @@
 
   // 鍏堟坊鍔犳寚瀹氱殑搴楅摵
   specifiedShops.forEach((name, index) => {
+    // 闅忔満鐢熸垚鍦ㄧ嚎鐘舵�侊紙80%姒傜巼鍦ㄧ嚎锛�
+    const isOnline = Math.random() < 0.8
+    // 闅忔満鐢熸垚寮傚父鐘舵�侊紙鍙湁鍦ㄧ嚎鏃舵墠鍙兘鏈夊紓甯革級
+    // 0: 娌圭儫娴撳害瓒呮爣, 1: 渚涚數寮傚父, 2: 璁惧鎴栫綉缁滃紓甯�, 3: 鏃犲紓甯�
+    const exceptionStatus = isOnline ? Math.floor(Math.random() * 4) : 2 // 绂荤嚎鏃堕粯璁や负璁惧鎴栫綉缁滃紓甯�
+
     shops.push({
       shop: {
         name: name,
@@ -75,7 +81,9 @@
         latitude: 31.17 + Math.random() * 0.1,
         longitude: 121.45 + Math.random() * 0.1,
         ringCodeLevel: ringCodeLevels[Math.floor(Math.random() * ringCodeLevels.length)],
-        ringCodePublishTime: '2023-03-16 10:00:00',
+        ringCodePublishTime: '2025-03-16 10:00:00',
+        isOnline: isOnline,
+        exceptionStatus: exceptionStatus,
       },
       recentData: generateRecentData(),
     })
@@ -88,6 +96,12 @@
     const suffix = nameSuffixes[Math.floor(Math.random() * nameSuffixes.length)]
     const randomName = `${prefix}${cuisine}${suffix}${i}`
 
+    // 闅忔満鐢熸垚鍦ㄧ嚎鐘舵�侊紙80%姒傜巼鍦ㄧ嚎锛�
+    const isOnline = Math.random() < 0.8
+    // 闅忔満鐢熸垚寮傚父鐘舵�侊紙鍙湁鍦ㄧ嚎鏃舵墠鍙兘鏈夊紓甯革級
+    // 0: 娌圭儫娴撳害瓒呮爣, 1: 渚涚數寮傚父, 2: 璁惧鎴栫綉缁滃紓甯�, 3: 鏃犲紓甯�
+    const exceptionStatus = isOnline ? Math.floor(Math.random() * 4) : 2 // 绂荤嚎鏃堕粯璁や负璁惧鎴栫綉缁滃紓甯�
+
     shops.push({
       shop: {
         name: randomName,
@@ -95,7 +109,9 @@
         latitude: 31.19 + Math.random() * 0.1,
         longitude: 121.41 + Math.random() * 0.1,
         ringCodeLevel: ringCodeLevels[Math.floor(Math.random() * ringCodeLevels.length)],
-        ringCodePublishTime: '2023-03-16 10:00:00',
+        ringCodePublishTime: '2025-03-16 10:00:00',
+        isOnline: isOnline,
+        exceptionStatus: exceptionStatus,
       },
       recentData: generateRecentData(),
     })
@@ -107,13 +123,13 @@
   // 鐢熸垚杩�1灏忔椂鐨勭洃娴嬫暟鎹紝姣�10鍒嗛挓涓�鏉�
   const data = []
   const now = new Date()
-  now.setFullYear(2023)
+  now.setFullYear(2025)
 
   for (let i = 5; i >= 0; i--) {
     const time = new Date(now.getTime() - i * 10 * 60 * 1000)
     data.push({
       sampleTime: time.toISOString().slice(0, 19).replace('T', ' '),
-      oilSmokeConcentration: (Math.random() * 5).toFixed(2),
+      oilSmokeConcentration: (Math.random() * 2).toFixed(2),
       purifierCurrent: (Math.random() * 10).toFixed(2),
       fanCurrent: (Math.random() * 15).toFixed(2),
     })

--
Gitblit v1.9.3