In the present work, the Q345B low-alloy steel with different contents and ER309L stainless steel were melted together to obtain new alloys. The aim was to design the composition of weld metal (Q345B low-alloy steel as the base material and ER309L welding wire as the filler material) and improve the corrosion resistance of the weld metal. During the welding process, the composition of the weld metal was controlled to match the new alloys by changing the welding heat input. A relationship curve between fusion ration and welding heat input was obtained. The research focused on analyzing the effect of mixed-smelting ratio between Q345B and ER309L and welding heat input on the microscopic structure and corrosion performance of the prepared samples. The results show that the melted alloys containing 20% to 30% Q345B consist of a ferrite (δ) phase and austenite (A) phase, the samples containing 45% to 50% Q345B consist of a martensite (M) phase and austenite (A) phase, and the sample containing 40% Q345B consists of a martensite (M) phase, ferrite (δ) phase, and austenite (A) phase. As the mixed-smelting ratio of Q345B/ER309L increased, the corrosion resistance of samples decreased gradually. For the weld metal, the fusion ration between Q345B base material and ER309L welding wire increases with the welding heat input. When the heat input changed from 0.645 kJ/mm to 2.860 kJ/mm, the composition of the weld metal was consistent with the melted alloys containing 20-45% Q345B. The microstructure and corrosion resistance of the weld metal could be designed by the melting means, which has important guiding significance for engineering applications.