/** * 修改角色 * @return type */ public function updateRoleMenu($roleid, $data, $type) { $feilds = array_keys($data); $this->daoHelper = new sys_daohelper(null, self::TABLE_ROLE_ROUTE, sys_define::$main_db); $iRet = $this->daoHelper->update($feilds, $data, 'role_id =' . $roleid . ' and type=' . $type); if ($iRet === false) { sys_log::getLogger()->fatal(sys_log::format('admin.updateRoleMenu', ['role_id' => $roleid])); return $iRet; } return $iRet; }