Browse Source

负数订单

shish 1 year ago
parent
commit
6dc4103084
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app-hd/controllers/RefundController.php

+ 2 - 1
app-hd/controllers/RefundController.php

@@ -256,7 +256,8 @@ class RefundController extends BaseController
                 //如果开的是负数订单,库存问题要处理,多处需要同步修改 minus_change_stock
                 OrderClass::minusChangeStock($returnOrder, $shop, $staff);
                 $transaction->commit();
-                util::complete();
+                $orderId = $returnOrder->id;
+                util::success(['forward' => 1, 'orderId' => $orderId]);
             } else {
                 //走正常售后
                 HdRefundService::addRefund($post, $order);