super-yimizi 3 mēneši atpakaļ
vecāks
revīzija
073815ee16
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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;
     }
     /**