Quellcode durchsuchen

拆单算法,获取最大返现分数,取当前订单的

lcl vor 1 Jahr
Ursprung
Commit
033ae94d86
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      Util/HaoDa/ProfitHelper.cs

+ 4 - 4
Util/HaoDa/ProfitHelper.cs

@@ -167,15 +167,15 @@ namespace MySystem
                                                         function.WriteLog("CheckTime:" + CheckTime, "返现逻辑日志");
                                                         if(CheckTime > 0)
                                                         {
-                                                            if(subset.DiviPersons - DiviTimes < CheckTime)
+                                                            if(set.DiviPersons - DiviTimes < CheckTime)
                                                             {
-                                                                CheckTime = subset.DiviPersons - DiviTimes;
+                                                                CheckTime = set.DiviPersons - DiviTimes;
                                                             }
                                                             function.WriteLog("CheckTime:" + CheckTime, "返现逻辑日志");
                                                             GetMoney = GetMoney * CheckTime;
                                                             db.SaveChanges();
                                                             function.WriteLog("CurDiviPersons1:" + CurDiviPersons, "返现逻辑日志");
-                                                            if(RedisDbconn.Instance.Count("ConsumerOrdersHd:Divi:" + PayMode + ":" + MerchantId) >= subset.DiviPersons)
+                                                            if(RedisDbconn.Instance.Count("ConsumerOrdersHd:Divi:" + PayMode + ":" + MerchantId) >= set.DiviPersons)
                                                             {
                                                                 CurDiviPersons -= CheckTime - 1;
                                                             }
@@ -191,7 +191,7 @@ namespace MySystem
 
                                                     decimal RefundAmount = GetMoney * 100;
                                                     RefundAmount = PublicFunction.NumberFormat(RefundAmount, 0);
-                                                    if(!orderids.Contains(suborder.Id) && DiviTimes < subset.DiviPersons)
+                                                    if(!orderids.Contains(suborder.Id) && DiviTimes < set.DiviPersons)
                                                     {
                                                         function.WriteLog("请求退款接口", "返现逻辑日志");
                                                         string RefundNo = "HDTK" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);