From 2e1780f1fea1d552386e135830605fb06080ddfd Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期四, 26 三月 2026 02:04:21 +0800
Subject: [PATCH] refactor(robotaxi): 移除不必要的OTP检查直接轮询热修状态

---
 src/pages/robotaxi/home/index.tsx |   40 ++++++++++++++++++----------------------
 1 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/src/pages/robotaxi/home/index.tsx b/src/pages/robotaxi/home/index.tsx
index 09f966b..d70d862 100644
--- a/src/pages/robotaxi/home/index.tsx
+++ b/src/pages/robotaxi/home/index.tsx
@@ -323,28 +323,24 @@
   });
 
   useEffect(() => {
-    checkOtp(false).then(otp => {
-      if (otp) {
-        let timer: any = null;
-        const check = () => {
-          getHotFixInfo().then((res: any) => {
-            const status = Number(res?.hotfixStatus);
-            if (status === 1) {
-              setIsMaintain(true);
-              setHotfixEndText(res?.hotfixEndTime);
-            } else {
-              setIsMaintain(false);
-              setHotfixEndText('');
-            }
-          }).catch(() => { });
-        };
-        check();
-        timer = setInterval(check, 3000);
-        return () => {
-          if (timer) clearInterval(timer);
-        };
-      }
-    })
+    let timer: any = null;
+    const check = () => {
+      getHotFixInfo().then((res: any) => {
+        const status = Number(res?.hotfixStatus);
+        if (status === 1) {
+          setIsMaintain(true);
+          setHotfixEndText(res?.hotfixEndTime);
+        } else {
+          setIsMaintain(false);
+          setHotfixEndText('');
+        }
+      }).catch(() => { });
+    };
+    check();
+    timer = setInterval(check, 3000);
+    return () => {
+      if (timer) clearInterval(timer);
+    };
   }, []);
 
   // 监听隐私政策显示状态

--
Gitblit v1.7.1