Przeglądaj źródła

付款成功了才打小票

shish 3 lat temu
rodzic
commit
aba4b421fe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app-hd/controllers/NoticeController.php

+ 1 - 1
app-hd/controllers/NoticeController.php

@@ -68,7 +68,7 @@ class NoticeController extends PublicController
             //零售采购结账通知
             if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
                 $cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
-                if (!empty($cg)) {
+                if (!empty($cg) && $cg->payStatus == 1) {
                     //微信通知
                     $saleId = $cg->saleId ?? 0;
                     $order = OrderClass::getById($saleId, true);