super-yimizi 3 kuukautta sitten
vanhempi
commit
073815ee16
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      application/common/Service/Pay/PayOperService.php

+ 2 - 2
application/common/Service/Pay/PayOperService.php

@@ -238,10 +238,10 @@ class PayOperService
             return false;
         }
 
-        if ($order->status == $order::STATUS_UNPAID) {      // 未支付,检测支付状态
+        if(!$order->isPayStatus()){
+             // 未支付,检测支付状态
             $order = $this->checkAndPaid($order, $pay->order_type);
         }
-
         return $order;
     }
     /**