The middle of the night stomach pain acid reflux is mostly gastritis or gastroduodenal ulcer, should consult a doctor in time, take omeprazole, domperidone and other drugs to inhibit acid pain, promote gastric emptying treatment. 1. Anti-infection: If the patient is infected with Helicobacter pylori, two kinds of antibiotics such as amoxicillin and metronidazole should be applied, plus one kind of proton pump inhibitor, plus one kind of bismuth quadruple therapy against Helicobacter pylori. 2. Acid suppression and pain relief: gastritis gastric ulcer caused by stomach pain is mostly gastric acid secretion, this time the need to apply proton pump inhibitors, such as omeprazole, epprazole. Or histamine receptor antagonists, such as cimetidine, famotidine and so on. 3. Promote gastric emptying: gastritis or gastric ulcer will affect gastric emptying and produce gastric juice or bile reflux, clinically, gastric dynamics drugs can be applied, such as domperidone to promote gastric emptying. It is recommended that people with gastritis or gastroduodenal ulcers should follow the doctor’s instructions for treatment, do gastroscopy regularly, pay attention to a light diet, regular rest and relaxation, and consult a doctor in time if there is any discomfort.