Browse Source

来客吧电签获取到押金,发开机奖励

lcl 2 years ago
parent
commit
8931898806

+ 2 - 1
AppStart/Helper/StatService.cs

@@ -1138,7 +1138,8 @@ namespace MySystem
                         if (pos != null)
                         {
                             function.WriteLog("sn:" + pos.PosSn, "开机奖励发放日志");
-                            if (pos.BindingTime > DateTime.Now.AddDays(-30))
+                            bool IsGet = db.OpenRewardDetail.Any(m => m.SnNo == pos.PosSn);
+                            if (pos.BindingTime > DateTime.Now.AddDays(-30) && !IsGet)
                             {
                                 decimal ActPrize = decimal.Parse(function.CheckNum(pos.SeoKeyword));
                                 function.WriteLog("押金:" + pos.SeoKeyword, "开机奖励发放日志");

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

@@ -46,7 +46,8 @@ namespace MySystem
                                 pos.SeoKeyword = act.SeoTitle;
                                 if(pos.BrandId == 15 || pos.BrandId == 16) //来客吧
                                 {
-                                    pos.Detail = "";
+                                    pos.Detail = ""; //清除激活奖励标记
+                                    RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString()); //发开机奖励
                                 }
                                 db.SaveChanges();
                             }