...
|
...
|
@@ -41,7 +41,7 @@ class PayController extends AbstractAction |
|
|
/* 判断用户是否登录 */
|
|
|
$uid = $this->getUid(true);
|
|
|
if (!$uid) {
|
|
|
$this->go( Helpers::url('/signin.html', array('refer' => $this->_request->server('HTTP_REFERER'))) );
|
|
|
$this->go( Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', SITE_MAIN))));
|
|
|
break;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -203,6 +203,7 @@ class PayController extends AbstractAction |
|
|
*/
|
|
|
private function commonShowResult($payResult, $payment)
|
|
|
{
|
|
|
$orderCode = '';
|
|
|
$this->setTitle('支付中心');
|
|
|
$this->setNavHeader('支付中心', Helpers::url('/home/orders'), false);
|
|
|
|
...
|
...
|
@@ -210,6 +211,7 @@ class PayController extends AbstractAction |
|
|
if ($payResult->payResult == 200) {
|
|
|
$view = 'index';
|
|
|
if (!empty($payResult->orderCode)) {
|
|
|
$orderCode = $payResult->orderCode;
|
|
|
//支付成功,发送一次支付确认
|
|
|
$uid = $this->getUid();
|
|
|
OrderData::payConfirm($payResult->orderCode, $payment, $uid);
|
...
|
...
|
@@ -218,7 +220,8 @@ class PayController extends AbstractAction |
|
|
|
|
|
$data = array(
|
|
|
'payBackPage' => true,
|
|
|
'pageFooter' => true
|
|
|
'pageFooter' => true,
|
|
|
'order_code' => $orderCode
|
|
|
);
|
|
|
$this->_view->display($view, $data);
|
|
|
}
|
...
|
...
|
|