浏览代码

修复盟主购买600一组的机具券没有反余额的问题

lichunlei 2 年之前
父节点
当前提交
8b5336548f
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      AppStart/Helper/AlipayPayBack2Service.cs

+ 7 - 1
AppStart/Helper/AlipayPayBack2Service.cs

@@ -209,6 +209,13 @@ namespace MySystem
                                             //返回到余额
                                             // OpAccount(db, order, order.UserId, order.TotalPrice / pro.ProductCount, pro.ProductCount);
                                         }
+                                        else
+                                        {
+                                            //扣减备用金
+                                            OpReserve(db, order, order.UserId, order.TotalPrice, 2, 0, "商城购机");
+                                            //返回到余额
+                                            OpLeaderAccount(db, order, order.UserId, order.TotalPrice / pro.ProductCount, pro.ProductCount);
+                                        }
                                     }
                                     //获得100元奖励
                                     OpAccount(db, order, order.UserId, 100, pro.ProductCount);
@@ -355,7 +362,6 @@ namespace MySystem
                         function.WriteLog("\r\n\r\n", "推荐下单奖励监控日志");
                     }
 
-
                     //推荐王
                     if(pro.ProductId == 29)
                     {