将循环替换更新为模版替换

Signed-off-by: cuisongliu <cuisongliu@qq.com>