public function moveGroupMemberAction() { $conn = $this->get('we_data_access'); $conn_im = $this->get('we_data_access_im'); $userinfo = $this->get('security.context')->getToken()->getUser(); $logger = $this->get("logger"); $res = $this->getRequest(); $groupid = $res->get("groupid"); $micro_account = $res->get("micro_account"); $check_login_accounts = $res->get("check_login_accounts"); $url_groupid = $res->get("url_groupid"); $MicroAccountMgr = new MicroAccountMgr($conn, $conn_im, $userinfo, $userinfo, $this->container); $flag = 0; if (empty($groupid)) { $flag = $MicroAccountMgr->deleteMembers(explode(",", $check_login_accounts), $micro_account, $url_groupid); } else { $flag = $MicroAccountMgr->movememebers(explode(",", $check_login_accounts), $groupid, $micro_account); } return $this->res(json_encode(array("returncode" => $flag)), 'json'); }