为函数get_attach_by_id添加参数$size