重构了diy部分的逻辑

Signed-off-by: Meathill <meathill@gmail.com>