dever 3 years ago
parent
commit
7a5c23cc1c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/shop/lib/Refund.php

+ 3 - 0
app/shop/lib/Refund.php

@@ -47,6 +47,9 @@ class Refund
             $refund_status = Dever::db($this->refund_table)->config['status'];
             $refund_process = Dever::db($this->refund_table)->config['process'];
             foreach ($data as $k => $v) {
+                if ($v['cash'] <= 0 && $v['re_cash'] > 0) {
+                    $data[$k]['cash'] = $v['re_cash'];
+                }
                 $data[$k]['cdate'] = date('Y-m-d H:i', $v['cdate']);
                 if ($v['order_goods_id'] != -1 && $order['price'] > $v['cash']) {
                     $data[$k]['goods'] = Dever::db($this->goods_table)->getDataByIds(array('ids' => $v['order_goods_id']));