Gluing theorem of holomorphic polygons under Lagrangian surgery