The YAG laser is a laser with a xenon lamp as the pump source and a ND:YAG laser crystal as the laser working substance. The laser power source first pre-ignites the pulse lamp and then discharges the pulse ammonia lamp through the laser power source to generate a light wave with a specific frequency and pulse width. The lightwave irradiates the laser crystal through the optical cavity to excite the crystal to generate a laser and then generates a pulse laser with a wavelength of 1064nm after passing through the resonant cavity. Finally, the laser is transmitted and focused by the fiber and then radiated to the surface of the workpiece to make the workpiece melt partially and realize welding.