With the rapid development of the petroleum industry, well casings, buried pipelines, storage tank floors, and pup Joints inside oil fields are all subject to external corrosion. In particular, severe corrosion of well casings has brought great problems to the production, development, and production of oil fields. Management as well as the environment have had serious impacts. There is corrosion on both the inner and outer walls of oil and gas well casings, among which internal corrosion is more serious. In addition, in well sections with large changes in well inclination, the mechanical damage of the tubing to the casing during operations accelerates the corrosion and perforation of the casing; welding defects in the welds, gaps in the threads and other parts can easily cause differences in the electrochemical properties of the steel pipe surface. It also leads to more serious corrosion damage.