Browse Source

调整拆单逻辑

lcl 1 year ago
parent
commit
644579ef7d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      Util/HaoDa/ProfitHelper.cs

+ 6 - 6
Util/HaoDa/ProfitHelper.cs

@@ -159,7 +159,7 @@ namespace MySystem
 
                                                     //拆单算法
                                                     MerchantParamSet splitMerchant = db.MerchantParamSet.FirstOrDefault(m => m.Id == suborder.MerchantId);
-                                                    int CheckTime = SplitOrder(GetMoney,subset.MinPayMoney, splitMerchant.QueryCount);
+                                                    int CheckTime = SplitOrder(suborder.PayMoney,subset.MinPayMoney, splitMerchant.QueryCount);
                                                     if(CheckTime > 0)
                                                     {
                                                         GetMoney = GetMoney * CheckTime;
@@ -178,9 +178,9 @@ namespace MySystem
                                                     {
                                                         function.WriteLog("请求退款接口", "返现逻辑日志");
                                                         string RefundNo = "HDTK" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
-                                                        var info = HaoDaHelper.Instance.AggregatedPayRefund(merchantAdd.OutMchtNo, merchantAdd.StoreNo, RefundNo, suborder.OrderNo, RefundAmount.ToString("f0"));
-                                                        if(info.Contains("\"resultCode\":\"1\"") && info.Contains("\"tradeStatus\":\"2\""))
-                                                        {
+                                                        // var info = HaoDaHelper.Instance.AggregatedPayRefund(merchantAdd.OutMchtNo, merchantAdd.StoreNo, RefundNo, suborder.OrderNo, RefundAmount.ToString("f0"));
+                                                        // if(info.Contains("\"resultCode\":\"1\"") && info.Contains("\"tradeStatus\":\"2\""))
+                                                        // {
                                                             db.ConsumerProfit.Add(new ConsumerProfit()
                                                             {
                                                                 CreateDate = DateTime.Now,
@@ -196,8 +196,8 @@ namespace MySystem
                                                             });
                                                             db.SaveChanges();
                                                             BackStatus = true;
-                                                        }
-                                                        function.WriteLog("接口返回:" + info, "返现逻辑日志");
+                                                        // }
+                                                        // function.WriteLog("接口返回:" + info, "返现逻辑日志");
                                                         orderids.Add(suborder.Id);
                                                     }