Эх сурвалжийг харах

盒易付继承乐刷盒子机具的活动属性

lichunlei 1 жил өмнө
parent
commit
3ff22bd989

+ 17 - 0
AppStart/Helper/StatService.cs

@@ -421,6 +421,23 @@ namespace MySystem
                                     if(checkpos != null)
                                     {
                                         doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
+                                        PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
+                                        if(edit != null)
+                                        {
+                                            edit.SeoKeyword = checkpos.SeoKeyword;
+                                            edit.UpFeeFlag = checkpos.UpFeeFlag;
+                                            edit.DownFeeFlag = checkpos.DownFeeFlag;
+                                            edit.UpFeeDate = checkpos.UpFeeDate;
+                                            edit.DownFeeDate = checkpos.DownFeeDate;
+                                            edit.BindingTime = checkpos.BindingTime;
+                                            edit.IsFirst = checkpos.IsFirst;
+                                            db.SaveChanges();
+                                            if(edit.UpFeeFlag == 1 && edit.DownFeeFlag == 0)
+                                            {
+                                                string info = "{\"RecordId\":\"\",\"PosId\":\"" + edit.Id + "\",\"Fee\": \"0.63\",\"Kind\": \"1\",\"OpMan\": \"系统\"}";
+                                                RedisDbconn.Instance.AddList("SetDepositPostQueue", info);
+                                            }
+                                        }
                                     }
                                 }
                             }