If a patient has midnight heartburn, it may be caused by duodenal ulcer, which is more likely to cause fasting pain and nighttime pain. Patients with resting angina are also prone to precordial discomfort at night, so it is recommended that patients first take sublingual heart pills or compound salvia drops. If the symptoms can be relieved after taking the medication, it is considered to be resting angina; if it cannot be relieved, it may be acute coronary syndrome or caused by duodenal ulcer. It is recommended that the patient go to the hospital for cardiac enzymes, electrocardiogram and, if necessary, coronary angiography or coronary CT. if cardiovascular disease is ruled out, gastroscopy can be done to clarify whether it is a duodenal ulcer.