Exemplo n.º 1
0
 public function actionPayment()
 {
     if (!$_GET['id']) {
         $this->redirect(array('index'));
     }
     $this->pageTitle = Yii::app()->name . '-' . "选择付款方式";
     $result = array();
     $ids = explode(',', $_GET['id']);
     $lottid = Yii::app()->request->getParam('lottid');
     $promoid = Yii::app()->request->getParam('promoid');
     foreach ($ids as $orderId) {
         $orderArr = OrderService::order($orderId);
         if (!$orderArr) {
             $this->redirect(array('index'));
         }
         $result[] = $orderArr;
     }
     $this->render('payment', array('result' => $result, 'lottid' => $lottid, 'promoid' => $promoid));
 }