浏览代码

fix:回调

super-yimizi 3 月之前
父节点
当前提交
073815ee16
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;
     }
     /**