shish 2 anni fa
parent
commit
0ff03beefa
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      console/controllers/RefundController.php

+ 2 - 0
console/controllers/RefundController.php

@@ -35,6 +35,8 @@ class RefundController extends Controller
                     $cgRefund = CgRefundClass::getById($cgRefundId, true);
                     if (empty($cgRefund)) {
                         echo "{$orderSn} 没有找到采购的退款信息\n";
+                        RefundOrderItemClass::deleteByCondition(['orderSn'=>$orderSn]);
+                        RefundOrderClass::deleteByCondition(['orderSn'=>$orderSn]);
                         continue;
                     }
                     $cgRefundStatus = $cgRefund->status;