service == null) { $this->service = new Prod(); } return $this->service; } /** * Des:获取产品的评论 * Name: actionGetProdComment * @return string * @author 倪宗锋 */ public function actionGetProdComment() { $param = [ 'page' => $this->_post('current_page', 1), 'page_size' => $this->_post('page_size', 10), 'pro_cate_id' => $this->_post('pro_cate_id', '') ]; $getList = $this->service()->getProdComment($param); if ($getList['flag'] == false) { return Util::returnJsEr($getList['msg']); } return Util::returnJsSu('', $getList['data']); } }