From 3e896c7ddb83106919b590d5a9eda19f8332dfd2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 22 十一月 2025 14:09:55 +0800
Subject: [PATCH] 0312 红点整理切换账号问题

---
 Main/System/Invest/InvestModel.cs |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/Main/System/Invest/InvestModel.cs b/Main/System/Invest/InvestModel.cs
index a11b019..fee4056 100644
--- a/Main/System/Invest/InvestModel.cs
+++ b/Main/System/Invest/InvestModel.cs
@@ -214,13 +214,20 @@
 
     void UpdateRedpoint()
     {
+        redpoint1.state = RedPointState.None;
+        redpoint2.state = RedPointState.None;
         if (!IsOpen())
         {
             return;
         }
-
-        redpoint1.state = GetInvestState(monthCardType) == 1 ? RedPointState.Simple : RedPointState.None;
-        redpoint2.state = GetInvestState(foreverCardType) == 1 ? RedPointState.Simple : RedPointState.None;
+        if (GetInvestState(monthCardType) == 1)
+        {
+            redpoint1.state = RedPointState.Simple;
+        }
+        if (GetInvestState(foreverCardType) == 1)
+        {
+            redpoint2.state = RedPointState.Simple;
+        }
 
     }
 

--
Gitblit v1.8.0