Browse Source

修复商城退款问题

lcl 1 year ago
parent
commit
f134cd5d7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AppStart/Helper/OrderRefundService.cs

+ 1 - 1
AppStart/Helper/OrderRefundService.cs

@@ -45,7 +45,7 @@ namespace MySystem
                             if(order.PayMode == 1)
                             {
                                 PublicAccountSet set = db.PublicAccountSet.FirstOrDefault() ?? new PublicAccountSet();
-                                string result = new Alipay.AlipayPublicMethod().Refund(set.AlipayAppId, set.AlipayPrivateKey, set.AlipayPublicKey, DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), Amount);
+                                string result = new Alipay.AlipayPublicMethod().Refund(set.AlipayAppId, set.AlipayPrivateKey, set.AlipayPublicKey, order.OrderNo, Amount);
                             }
                             else if(order.PayMode == 3)
                             {