Răsfoiți Sursa

广电卡激活发奖励判断卡类型通过redis读取配置数据

lcl 8 luni în urmă
părinte
comite
6e54264c95
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      AppStart/Helper/SycnSpServer/SycnSpBindService.cs

+ 2 - 1
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -264,11 +264,12 @@ namespace MySystem
 
                                 decimal ActualAmount = decimal.Parse(function.CheckNum(Bind.SeoTitle)); //实付金额
                                 string ActStatus = Bind.Field5; //激活状态名称
+                                string CheckCard = function.CheckNull(RedisDbconn.Instance.Get<string>("SimCheckCard"));
                                 if (KindName == "基础套餐" && Name == "双百套餐" && ActStatus == "已激活" && ActualAmount >= 100)
                                 {
                                     pos.Detail = "0";
                                 }
-                                else if ((Name == "升龙卡" || Name == "祥龙卡" || Name == "鑫龙卡" || Name == "腾龙卡") && ActStatus == "已激活" && ActualAmount >= 100)
+                                else if (CheckCard.Contains("," + Name + ",") && ActStatus == "已激活" && ActualAmount >= 100)
                                 {
                                     pos.Detail = "0";
                                 }