Răsfoiți Sursa

限制好哒奖励发放,小微判断条件变更

lcl 6 luni în urmă
părinte
comite
643d4f0a0a
1 a modificat fișierele cu 7 adăugiri și 6 ștergeri
  1. 7 6
      AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

+ 7 - 6
AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

@@ -105,6 +105,7 @@ namespace MySystem
                                 PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PxcModels.PosMerchantInfo();
                                 if(pos.BindingTime > now.AddDays(-CheckDays))
                                 {
+                                    string SubjectType = act.Field2;
                                     pos.PrizeParams = pos.SeoKeyword;
                                     decimal Deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
                                     MpMainModels2.MerchantAddInfo merchantAddInfo = mpdb.MerchantAddInfo.FirstOrDefault(m => m.MchtNo == merchant.KqMerNo) ?? new MpMainModels2.MerchantAddInfo();
@@ -114,7 +115,7 @@ namespace MySystem
                                     {
                                         if(Deposit == 198)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 0;
                                             }
@@ -125,7 +126,7 @@ namespace MySystem
                                         }
                                         else if(Deposit == 249)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 50;
                                                 PrizeFlag = false;
@@ -137,7 +138,7 @@ namespace MySystem
                                         }
                                         else if(Deposit == 228)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 0;
                                             }
@@ -148,7 +149,7 @@ namespace MySystem
                                         }
                                         else if(Deposit == 380)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 100;
                                                 PrizeFlag = false;
@@ -160,7 +161,7 @@ namespace MySystem
                                         }
                                         else if(Deposit == 399)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 0;
                                             }
@@ -178,7 +179,7 @@ namespace MySystem
                                         }
                                         else if(Deposit == 499)
                                         {
-                                            if(merchantAddInfo.SubjectType == "SUBJECT_TYPE_SMALL" || string.IsNullOrEmpty(merchantAddInfo.SubjectType))
+                                            if(SubjectType == "000001" || string.IsNullOrEmpty(SubjectType))
                                             {
                                                 Prize = 0;
                                             }