Showing
4 changed files
with
7 additions
and
2 deletions
This diff could not be displayed because it is too large.
888 Bytes
@@ -10,7 +10,9 @@ | @@ -10,7 +10,9 @@ | ||
10 | </div> | 10 | </div> |
11 | <div class="success-btn pt50"> | 11 | <div class="success-btn pt50"> |
12 | <a href="/">继续逛</a> | 12 | <a href="/">继续逛</a> |
13 | - <a href="/home/orders/detail?order_code=<?php echo $this->order_code; ?>">查看订单</a> | 13 | + {{#if order_code}} |
14 | + <a href="/home/orders/detail?order_code={{order_code}}">查看订单</a> | ||
15 | + {{/if}} | ||
14 | </div> | 16 | </div> |
15 | </div> | 17 | </div> |
16 | </div> | 18 | </div> |
@@ -203,6 +203,7 @@ class PayController extends AbstractAction | @@ -203,6 +203,7 @@ class PayController extends AbstractAction | ||
203 | */ | 203 | */ |
204 | private function commonShowResult($payResult, $payment) | 204 | private function commonShowResult($payResult, $payment) |
205 | { | 205 | { |
206 | + $orderCode = ''; | ||
206 | $this->setTitle('支付中心'); | 207 | $this->setTitle('支付中心'); |
207 | $this->setNavHeader('支付中心', Helpers::url('/home/orders'), false); | 208 | $this->setNavHeader('支付中心', Helpers::url('/home/orders'), false); |
208 | 209 | ||
@@ -210,6 +211,7 @@ class PayController extends AbstractAction | @@ -210,6 +211,7 @@ class PayController extends AbstractAction | ||
210 | if ($payResult->payResult == 200) { | 211 | if ($payResult->payResult == 200) { |
211 | $view = 'index'; | 212 | $view = 'index'; |
212 | if (!empty($payResult->orderCode)) { | 213 | if (!empty($payResult->orderCode)) { |
214 | + $orderCode = $payResult->orderCode; | ||
213 | //支付成功,发送一次支付确认 | 215 | //支付成功,发送一次支付确认 |
214 | $uid = $this->getUid(); | 216 | $uid = $this->getUid(); |
215 | OrderData::payConfirm($payResult->orderCode, $payment, $uid); | 217 | OrderData::payConfirm($payResult->orderCode, $payment, $uid); |
@@ -218,7 +220,8 @@ class PayController extends AbstractAction | @@ -218,7 +220,8 @@ class PayController extends AbstractAction | ||
218 | 220 | ||
219 | $data = array( | 221 | $data = array( |
220 | 'payBackPage' => true, | 222 | 'payBackPage' => true, |
221 | - 'pageFooter' => true | 223 | + 'pageFooter' => true, |
224 | + 'order_code' => $orderCode | ||
222 | ); | 225 | ); |
223 | $this->_view->display($view, $data); | 226 | $this->_view->display($view, $data); |
224 | } | 227 | } |
-
Please register or login to post a comment