DuGuYang 1 year ago
parent
commit
1f3bab0a63
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Util/HaoDa/ProfitHelper.cs

+ 3 - 2
Util/HaoDa/ProfitHelper.cs

@@ -63,7 +63,7 @@ namespace MySystem
         }
 
         public void ReturnStat(string orderidstring, int PayMode)
-        { 
+        {
             int OrderId = int.Parse(function.CheckInt(orderidstring));
             WebCMSEntities db = new WebCMSEntities();
             using (var tran = db.Database.BeginTransaction())
@@ -178,6 +178,7 @@ namespace MySystem
                                                     // {
                                                     //     Dictionary<string, string> dic = WeChatFunction.Instance.Refund(merchantAdd.SubMchid, GetMoney, suborder.PayMoney, suborder.OrderNo, DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), "门店分红");
                                                     // }
+                                                    var info = HaoDaHelper.Instance.AggregatedPayRefund(merchantAdd.SubMchid, merchantAdd.AlipayPid, "HDTK" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), merchantAdd.AlipayAuthToken, GetMoney.ToString());
                                                     if (suborder.CurDivi < suborder.MaxDivi)
                                                     {
                                                         RedisDbconn.Instance.AddList("ConsumerOrders:Divi:" + PayMode + ":" + MerchantId, suborder);
@@ -189,7 +190,7 @@ namespace MySystem
                                                 }
                                             }
                                             else
-                                            { 
+                                            {
                                                 //否者计算人数不计入退款名额
                                                 CurDiviPersons += 1;
                                             }