Parcourir la source

增加动销买断奖励补录

lcl il y a 1 an
Parent
commit
ab08d50ec4

+ 5 - 1
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -991,7 +991,7 @@ namespace MySystem.Areas.Admin.Controllers
         }
         }
 
 
         [HttpPost]
         [HttpPost]
-        public string MachinePrizeNewDo(string PosSns, int ActPrize, int OpenPrize, int DepositPrize, int LeaderPrize, int OperterPrize)
+        public string MachinePrizeNewDo(string PosSns, int ActPrize, int OpenPrize, int DepositPrize, int LeaderPrize, int OperterPrize, int HdActPrize)
         {
         {
             if (string.IsNullOrEmpty(PosSns))
             if (string.IsNullOrEmpty(PosSns))
             {
             {
@@ -1144,6 +1144,10 @@ namespace MySystem.Areas.Admin.Controllers
                         RedisDbconn.Instance.AddList("ActRewardQueue", "{\"PosId\":\"" + PosId + "\",\"UserId\":\"" + UserId + "\",\"RewardAmount\":\"" + RewardAmount + "\",\"ChangeType\":\"0\"}");
                         RedisDbconn.Instance.AddList("ActRewardQueue", "{\"PosId\":\"" + PosId + "\",\"UserId\":\"" + UserId + "\",\"RewardAmount\":\"" + RewardAmount + "\",\"ChangeType\":\"0\"}");
                     }
                     }
                 }
                 }
+                if(HdActPrize == 1)
+                {
+                    RedisDbconn.Instance.AddList("HdActRewardQueue", "{\"PosId\":\"" + PosId + "\",\"UserId\":\"" + UserId + "\",\"RewardAmount\":\"100\",\"ChangeType\":\"140\"}");
+                }
                 if(OpenPrize == 1)
                 if(OpenPrize == 1)
                 {
                 {
                     RedisDbconn.Instance.AddList("OpenRewardQueue", PosId.ToString());
                     RedisDbconn.Instance.AddList("OpenRewardQueue", PosId.ToString());

+ 7 - 0
Areas/Admin/Views/MainServer/SysTools/MachinePrizeNew.cshtml

@@ -68,6 +68,13 @@
                                             lay-skin="switch" lay-filter="switchTest" title="开关">
                                             lay-skin="switch" lay-filter="switchTest" title="开关">
                                     </div>
                                     </div>
                                 </div>
                                 </div>
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">动销买断奖励</label>
+                                    <div class="layui-input-block">
+                                        <input type="checkbox" id="HdActPrize" name="HdActPrize" value="1"
+                                            lay-skin="switch" lay-filter="switchTest" title="开关">
+                                    </div>
+                                </div>
                             </div>
                             </div>
 
 
                         </div>
                         </div>