Commit 62e0635e authored by liuyuzhen's avatar liuyuzhen

10分钟取消订单付款成功恢复订单问题

parent aff8de35
......@@ -52,12 +52,14 @@ class PaymentServiceModel extends \Business\AbstractModel{
$param['pay_type'] = \Our\ApiConst::wxAppPayType;
}
$callbackInfo = $wxpay->getNotifyInfo();
\Our\Log::getInstance()->write(json_encode($callbackInfo,true),'data/log/applog');
if($callbackInfo) {
//验证成功
$param['paySn'] = $callbackInfo['out_trade_no'];
$orderConfirmUtil = \Order\OrderConfirmUtil::getInstance();
$return = $orderConfirmUtil->updateOrderToPayed($param);
if($return['flag']) {
\Our\Log::getInstance()->write($callbackInfo['returnXml'],'data/log/applog');
echo $callbackInfo['returnXml'];
die;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment