优化代码

Signed-off-by: TZ <atian25@qq.com>
拆分代码

Signed-off-by: TZ <atian25@qq.com>