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