...
|
...
|
@@ -152,20 +152,10 @@ class PayModel |
|
|
$log = new PhpLog(self::ORDER_STATUS_LOG, 'PRC', self::LOG_LEVEL);
|
|
|
$log->LogInfo('===[' . $orderCode . ']===');
|
|
|
|
|
|
// ERP提交订单状态
|
|
|
$log->LogInfo('===开始调用ERP提交订单状态接口,接口方法为web.SpaceOrders.submitOrderStatus===');
|
|
|
$log->LogInfo('===请求参数为orderCode=' . $orderCode . '===');
|
|
|
$erpReturn = PayData::submitOrderStatus($orderCode, 0, '', '', 0, '', '', '');
|
|
|
$log->LogInfo('===结束调用ERP提交订单状态接口,返回结果为===');
|
|
|
$log->LogInfo(var_export($erpReturn, true));
|
|
|
|
|
|
// 更新订单的状态
|
|
|
$log->LogInfo('===开始调用更新订单状态接口,接口方法为web.SpaceOrders.updatePaymentStatus===');
|
|
|
$log->LogInfo('===请求参数为orderId=' . $order['order_id'] . 'uid=' . $uid . '===');
|
|
|
$updateOrderStatus = PayData::updateOrderStatus($order['order_id'], $uid, 0, 'Y', '');
|
|
|
$log->LogInfo('===结束调用更新订单状态接口,返回结果为===');
|
|
|
//无需付款-更新订单状态
|
|
|
$updateOrderStatus = PayData::pcpayNotify($orderCode, 0, 0);
|
|
|
$log->LogInfo('===无需付款---结束调用更新订单状态接口,返回结果为===');
|
|
|
$log->LogInfo(var_export($updateOrderStatus, true));
|
|
|
|
|
|
$result['notNeedPay'] = true;
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -580,18 +570,8 @@ class PayModel |
|
|
// 初始化日志
|
|
|
$log = new PhpLog(self::ORDER_STATUS_LOG, 'PRC', self::LOG_LEVEL);
|
|
|
$log->LogInfo('===[' . $orderCode . ']===');
|
|
|
|
|
|
$log->LogInfo('==[' . $orderCode . ']=开始调用ERP提交订单状态接口,接口方法为web.SpaceOrders.submitOrderStatus===');
|
|
|
$log->LogInfo('==[' . $orderCode . ']=请求参数为orderCode=' . $orderCode . '===');
|
|
|
// ERP提交订单状态
|
|
|
$erpReturn = PayData::submitOrderStatus($orderCode, $payment, $bankName, $bankCode, $amount, $payOrderCode, $tradeNo, $bankBillNo);
|
|
|
$log->LogInfo('==[' . $orderCode . ']=结束调用ERP提交订单状态接口,返回结果为===');
|
|
|
$log->LogInfo(var_export($erpReturn, true));
|
|
|
|
|
|
$log->LogInfo('==[' . $orderCode . ']=开始调用更新订单状态接口,接口方法为web.SpaceOrders.updatePaymentStatus===');
|
|
|
$log->LogInfo('==[' . $orderCode . ']=请求参数为orderId=' . $orderData['order_id'] . 'uid=' . $uid . '===');
|
|
|
// 更新订单的状态
|
|
|
$updateOrderStatus = PayData::updateOrderStatus($orderData['order_id'], $uid, $payment, 'Y', $bankCode);
|
|
|
//更新订单状态
|
|
|
$updateOrderStatus = PayData::pcpayNotify($orderCode, $payment, $amount, $bankName, $bankCode, $tradeNo, $bankBillNo);
|
|
|
$log->LogInfo('==[' . $orderCode . ']=结束调用更新订单状态接口,返回结果为===');
|
|
|
$log->LogInfo(var_export($updateOrderStatus, true));
|
|
|
$log->LogInfo('==[' . $orderCode . ']=订单支付成功,请等待发货===');
|
...
|
...
|
|