zxhxx há 1 ano atrás
pai
commit
80983cd5e2
1 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      Model/Order/MOrder.Class.php

+ 5 - 3
Model/Order/MOrder.Class.php

@@ -752,19 +752,20 @@ class MOrder extends MBaseModel
 
         // 处理支付
         $payResult = self::toPay($tmpOuterTradeNo,$params,$orderIds,$ip);
+        var_dump($payResult);
         if (!$payResult->isSuccess()){
             return ResultWrapper::fail($payResult->getData(),$payResult->getErrorCode());
         }
-
+         echo '1';
         // 发送新订单提醒
         parent::sendMessage($this->onlineEnterpriseId,'NewOrder');
         $params['orderType'] == StatusCode::$orderType['saleOrder'] && self::runProcessNextAudit($orderIds);
-
+        echo '2';
         $customerData = $this->objDCustomer->get($buildGroup['orderIndex'][0]['customerId']);
         if ($customerData === false) {
             return ResultWrapper::fail($this->objDCustomer->error(), ErrorCode::$dberror);
         }
-
+        echo '3';
         if(isset($customerData['openId']) && !empty($customerData['openId'])){
             $orderData = $this->objDOrder->get($orderIds);
             if($orderData === false){
@@ -789,6 +790,7 @@ class MOrder extends MBaseModel
                 }
             }
         }
+        echo '4';
         return ResultWrapper::success($payResult->getData());
     }