public function actionGoodsinfo() { $this->pageTitle = Yii::app()->name . '-' . "商品详情"; $ID = Yii::app()->request->getParam('goods'); if (Yii::app()->request->getParam('Version')) { $Version = Yii::app()->request->getParam('Version'); $GoodsID = Yii::app()->request->getParam('GoodsID'); // $Goodsinfo = PapGoods::model()->findBypk($GoodsID); $data = DealergoodsService::getmongoversion($GoodsID, $Version, 'haveveh'); $this->render('versioninfo', array('data' => $data['GoodsInfo'])); } else { $this->render('edit', array('data' => DealergoodsService::editgetgoods($ID), 'status' => 'info')); } }