Kirin 3 anni fa
parent
commit
586242a59b

+ 2 - 1
app/admin/controller/order/StoreOrder.php

@@ -557,6 +557,7 @@ class StoreOrder extends AuthController
 //        unset($data['refund_price']);
         $refund_data['pay_price'] = bcadd($product['pay_price'], $product['deposit'], 2);
         $refund_data['refund_price'] = $refund_price;
+        $refund_data['refund_id'] = $product['order_id'] . time();
         if ($product['pay_type'] == 'weixin') {
             if ($product['is_channel'] == 1) {//小程序
                 try {
@@ -694,7 +695,7 @@ class StoreOrder extends AuthController
         unset($data['refund_price']);
         $refund_data['pay_price'] = bcadd($product['pay_price'], $product['deposit'], 2);
         $refund_data['refund_price'] = $refund_price;
-        $refund_data['refund_id'] = 'refund_deposit' . $product['order_id'];
+        $refund_data['refund_id'] = 'refund_deposit' . $product['order_id'] . time();
 
         if ($product['pay_type'] == 'weixin') {
             if ($product['is_channel'] == 1) {//小程序

+ 2 - 0
app/api/controller/admin/StoreOrderController.php

@@ -664,6 +664,7 @@ class StoreOrderController
         if ($bj < 0) return app('json')->fail('退款金额大于支付金额,请修改退款金额');
         $refundData['pay_price'] = $orderInfo['pay_price'];
         $refundData['refund_price'] = $price;
+        $refundData['refund_id'] = $orderInfo['order_id'] . time();
         if ($orderInfo['pay_type'] == 'weixin') {
             if ($orderInfo['is_channel'] == 1) {// 小程序
                 try {
@@ -846,6 +847,7 @@ class StoreOrderController
         unset($data['refund_price']);
         $refund_data['pay_price'] = bcadd($orderInfo['pay_price'], $orderInfo['deposit'], 2);
         $refund_data['refund_price'] = $refund_price;
+        $refund_data['refund_id'] = 'refund_deposit' . $orderInfo['order_id'] . time();
 
         if ($orderInfo['pay_type'] == 'weixin') {
             if ($orderInfo['is_channel'] == 1) {//小程序