...
|
...
|
@@ -979,7 +979,7 @@ class HomeController extends AbstractAction |
|
|
if (!empty($orderDetail['isPay'])) {
|
|
|
$this->go(Helpers::url('/home/orderdetail', array('order_code' => $orderCode)));
|
|
|
}
|
|
|
|
|
|
$openId = '';
|
|
|
$hasWxShare = strpos($this->server('HTTP_USER_AGENT', ''), 'MicroMessenger') !== false;
|
|
|
if ($hasWxShare) {
|
|
|
$openId = $this->getSession('weixinOpenId' . $orderCode);
|
...
|
...
|
@@ -1013,6 +1013,7 @@ class HomeController extends AbstractAction |
|
|
),
|
|
|
),
|
|
|
'hasWxShare' => $hasWxShare,
|
|
|
'openId' => $openId,
|
|
|
'orderCode' => $orderCode,
|
|
|
'orderTotal' => isset($orderDetail['goodsAmount']) ? $orderDetail['goodsAmount'] : 0,
|
|
|
'orderTotalFormat' => isset($orderDetail['goodsAmount']) ? sprintf("%d", $orderDetail['goodsAmount']) : 0,
|
...
|
...
|
@@ -1111,6 +1112,11 @@ class HomeController extends AbstractAction |
|
|
$this->setTitle('订单详情');
|
|
|
$this->setNavHeader('订单详情', true, false);
|
|
|
|
|
|
$openId = $this->get('openId', '');
|
|
|
if (!empty($openId)) {
|
|
|
//微信支付成功,发送支付确认接口
|
|
|
OrderData::payConfirm($orderCode, 22, $this->_uid);
|
|
|
}
|
|
|
|
|
|
$this->_view->display('order-detail', array(
|
|
|
'orderDetailPage' => true,
|
...
|
...
|
|