code optimization

Signed-off-by: TomWu <myphpframe@163.com>