rabin há 2 anos atrás
pai
commit
7e674d5121
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      app/shop/lib/Refund.php

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

@@ -461,6 +461,9 @@ class Refund
         } elseif ($this->type == 'buy' && $process == 2 && $order['source_type'] == 2) {
             # 如果是采购单,退款后要恢复库存
             Dever::load('store/lib/goods')->oper($order['source_id'], 2, 2, $data);
+        } elseif ($this->type == 'dh' && $process == 2) {
+            # 如果是兑换单,要恢复
+            Dever::load('agent/lib/dhorder')->updateSell($order, 2);
         }
         if (isset($sell_order_goods) && $sell_order_goods) {
             Dever::load('shop/lib/refund')->set('sell')->apply(2, $sell_order_goods['shop_id'], $sell_order_goods['order_id'], $sell_order_goods['id'], 2, 0, '退货退款', '', 2, -1);