Authored by cailing

下单log

... ... @@ -969,13 +969,14 @@ class HomeController extends AbstractAction
/* 判断订单信息不存在 */
$orderDetail = OrderData::viewOrderData($orderCode, $uid, $this->_usession);
if (empty($orderDetail['data'])) {
UdpLog::info('【下单】订单信息校验','orderCode:'.$orderCode.'uid:'.$uid.'返回:'.json_encode($orderDetail));
UdpLog::info('【微信支付下单】订单信息校验','orderCode:'.$orderCode.'uid:'.$uid.'返回:'.json_encode($orderDetail));
break;
}
$totalFee = strval($orderDetail['data']['payment_amount'] * 100);
$openId = $this->getSession('weixinOpenId');
if (empty($openId)) {
UdpLog::info('【微信支付下单】Session中的weixinOpenId校验','weixinOpenId为空');
break;
}
... ... @@ -991,8 +992,9 @@ class HomeController extends AbstractAction
$input->SetTrade_type("JSAPI");
$input->SetOpenid($openId);
$order = WxPayApi::unifiedOrder($input);
UdpLog::info('【微信支付下单】统一下单时返回结果,','input:'.$input.'返回:'.json_encode($order));
$jsApiParameters = $tools->GetJsApiParameters($order);
UdpLog::info('【微信支付下单】支付参数,','order:'.$order.'uid:'.$uid.'返回:'.json_decode($jsApiParameters));
$this->echoJson(array('code' => 200, 'data' => array('jsApiParameters' => json_decode($jsApiParameters))));
} while (false);
}
... ...
... ... @@ -740,7 +740,7 @@ class CartModel
$result['code'] = 402;
$result['message'] = '请选择配送时间';
} elseif (empty($deliveryWay)) {
UdpLog::info('【结算信息】配送方式参数参数校验','deliveryTime为空');
UdpLog::info('【结算信息】配送方式参数校验','deliveryTime为空');
$result['code'] = 403;
$result['message'] = '请选择配送方式';
} else {
... ...
... ... @@ -134,7 +134,9 @@ class PayController extends AbstractAction
$input->SetTrade_type("JSAPI");
$input->SetOpenid($openId);
$order = WxPayApi::unifiedOrder($input);
UdpLog::info('【微信支付下单】统一下单时返回结果,','input:'.$input.'返回:'.json_encode($order));
$jsApiParameters = $tools->GetJsApiParameters($order);
UdpLog::info('【微信支付下单】支付参数,','order:'.$order.'uid:'.$uid.'返回:'.json_decode($jsApiParameters));
$this->echoJson(array('code' => 200, 'data' => array('jsApiParameters' => json_decode($jsApiParameters))));
... ...