完善realm

Signed-off-by: guvivi <guchenbo_work@sina.com>