Authored by hf

code review by hf: format currency and detail code

@@ -835,17 +835,24 @@ class HomeController extends AbstractAction @@ -835,17 +835,24 @@ class HomeController extends AbstractAction
835 // 审判跳转登录页 835 // 审判跳转登录页
836 $this->auditJumpLogin(); 836 $this->auditJumpLogin();
837 837
  838 + /* 判断订单号是否传 */
838 $orderCode = $this->get('order_code'); 839 $orderCode = $this->get('order_code');
839 if (empty($orderCode)) { 840 if (empty($orderCode)) {
840 $this->error(); 841 $this->error();
841 } 842 }
842 843
  844 + /* 订单信息不存在 */
  845 + $orderDetail = OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession);
  846 + if (empty($orderDetail)) {
  847 + $this->error();
  848 + }
  849 +
843 $this->setTitle('订单详情'); 850 $this->setTitle('订单详情');
844 $this->setNavHeader('订单详情'); 851 $this->setNavHeader('订单详情');
845 852
846 $this->_view->display('order-detail', array( 853 $this->_view->display('order-detail', array(
847 'orderDetailPage' => true, 854 'orderDetailPage' => true,
848 - 'orderDetail' => OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession), 855 + 'orderDetail' => $orderDetail,
849 )); 856 ));
850 } 857 }
851 858
@@ -854,13 +861,12 @@ class HomeController extends AbstractAction @@ -854,13 +861,12 @@ class HomeController extends AbstractAction
854 */ 861 */
855 public function helpAction() 862 public function helpAction()
856 { 863 {
857 - $service = Home\HelpModel::serviceInfo();  
858 $this->setTitle('帮助中心'); 864 $this->setTitle('帮助中心');
859 $this->setNavHeader('帮助中心'); 865 $this->setNavHeader('帮助中心');
860 - $data = array(  
861 - 'iHelp' => $service,  
862 - );  
863 - $this->_view->display('help', $data); 866 +
  867 + $this->_view->display('help', array(
  868 + 'iHelp' => Home\HelpModel::serviceInfo(),
  869 + ));
864 } 870 }
865 871
866 /** 872 /**