To relieve pyloric obstruction consider the following: 1. conservative treatment, if the pyloric obstruction is due to spasm, H2 receptor antagonists, or proton pump inhibitors are generally used to inhibit gastric acid secretion, and sensitive antibiotics are used according to drug experiments to prevent the occurrence of infection. At the same time, patients should fast from water, use gastrointestinal decompression if necessary, and input electrolytes to prevent acid-base disorders.2. Use surgical treatment. If conservative treatment is ineffective and does not relieve pain as well as obstruction, endoscopic surgery or open surgery can be performed to relieve contracture obstruction due to post-ulcerative scarring.3. If the obstruction is due to a tumor, patients can consider first surgical treatment or radiotherapy or chemotherapy to shrink the tumor, or to relieve the symptoms by putting stents.