From cec3209ef58f5e1bc0a9eb7ffbb1beaf8ee4bf80 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期六, 13 十月 2018 17:51:09 +0800
Subject: [PATCH] 2141 前端 绑玉转盘,开始按钮不能点击

---
 System/Vip/VipInvest/WheelOfFortuneModel.cs |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/System/Vip/VipInvest/WheelOfFortuneModel.cs b/System/Vip/VipInvest/WheelOfFortuneModel.cs
index 9c9e149..e85eb63 100644
--- a/System/Vip/VipInvest/WheelOfFortuneModel.cs
+++ b/System/Vip/VipInvest/WheelOfFortuneModel.cs
@@ -99,6 +99,17 @@
                     {
                         flo = flo - 360f;
                     }
+                    if (Math.Abs(flo- AngleSave)<=0.2)
+                    {
+                        if ((flo + 1f )> (AngleDic[Lattice].AngleStart + 1f) && (flo + 1f) < (AngleDic[Lattice].AngleEnd - 1f))
+                        {
+                            flo += 1;
+                        }
+                        else if ((flo - 1f) > (AngleDic[Lattice].AngleStart + 1f) && (flo - 1f) < (AngleDic[Lattice].AngleEnd - 1f))
+                        {
+                            flo -= 1;
+                        }
+                    }
                     LocalSave.SetFloat(StrKey, flo);
                     AngleSave = LocalSave.GetFloat(StrKey);
                 }
@@ -124,7 +135,7 @@
         }
         private void RedPoint()
         {
-            if (!FuncOpen.Instance.IsFuncOpen(144) /*|| Number<=0*/)
+            if (!FuncOpen.Instance.IsFuncOpen(144))
             {
                 return;
             }

--
Gitblit v1.8.0