逻辑与循环。

Signed-off-by: cyberzhg <cyberzhg@gmail.com>