public function staffInviteAction($network_domain) { $user = $this->get('security.context')->getToken()->getUser(); $circle_id = $user->get_circle_id($network_domain); if ($circle_id != $user->get_circle_id($user->edomain)) { $response = new Response(""); $response->headers->set('Content-Type', 'text/html'); return $response; } else { $a = array(); //判断是否有同事 $staffMgr = new \Justsy\BaseBundle\Management\Staff($this->get('we_data_access'), $this->get('we_data_access_im'), $user->getUserName(), $this->get("logger")); $a["list"] = $staffMgr->getColleague(7); return $this->render('JustsyBaseBundle:EnterpriseHome:staff_invite.html.twig', $a); } }