调整框架，使其易于修改配置

Signed-off-by: hurley25 <liuhuan1992@gmail.com>