public function getTrendWinAction($conv_root_id) { $FILE_WEBSERVER_URL = $this->container->getParameter('FILE_WEBSERVER_URL'); $user = $this->get('security.context')->getToken()->getUser(); $da = $this->get('we_data_access'); $conv = new \Justsy\BaseBundle\Business\Conv(); if ($conv_root_id <= 1) { $ds = $conv->getRelationSysTrend($da, $user, $conv_root_id, $FILE_WEBSERVER_URL); } else { $ds = $conv->getTrend($da, $user, $conv_root_id, $FILE_WEBSERVER_URL); } if (count($ds["we_convers_list"]["rows"]) == 0) { return new Response(""); } if ($ds["we_convers_list"]["rows"][0]["auth_level"] != 'S') { $ds["we_convers_list"]["rows"][0]["vip_level"] = \Justsy\BaseBundle\Common\ExperienceLevel::getLevel($ds["we_convers_list"]["rows"][0]["total_point"]); } else { $ds["we_convers_list"]["rows"][0]["vip_level"] = "1"; // } $css_level = (int) ($ds["we_convers_list"]["rows"][0]["we_level"] / 10); //var_dump($this->getRequest()->get("trend")." 官方动态"); $para = array('this' => $this, 'ds' => $ds, 'css_level' => $css_level, "trend" => $this->getRequest()->get("trend")); return $this->render('JustsyBaseBundle:CDisplayArea:trend_win.html.twig', $para); }