Browse Source

修复有押金5000激活机具的bug,押金推送也触发一次激活流程

lcl 1 năm trước cách đây
mục cha
commit
5466eb7b8c

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

@@ -54,6 +54,13 @@ namespace MySystem
                                 StatService.Instance.PreActPrize(db, pos, merchant, act.SeoTitle);
                             }
 
+                            if(pos.BrandId == 12 || pos.BrandId == 13 || pos.BrandId == 15 || pos.BrandId == 16)
+                            {
+                                decimal CheckMoney = kqproduct.ActTradeAmount > 0 ? kqproduct.ActTradeAmount : 1000;
+                                int CheckDays = 30;
+                                SycnSpTradeService.Instance.ActPos(db, pos, CheckMoney, CheckDays);
+                            }
+
                             ActivateRecord edit = spdb.ActivateRecord.FirstOrDefault(m => m.Id == act.Id);
                             if (edit != null)
                             {

+ 1 - 1
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -364,7 +364,7 @@ namespace MySystem
                                             }
                                         }
                                         decimal CheckMoney = brand.ActTradeAmount > 0 ? brand.ActTradeAmount : 1000;
-                                        if(string.IsNullOrEmpty(pos.SeoKeyword) || function.CheckInt(pos.SeoKeyword) == "0")
+                                        if(string.IsNullOrEmpty(pos.SeoKeyword) || function.CheckNum(pos.SeoKeyword) == "0")
                                         {
                                             CheckMoney = 5000;
                                         }