Inclusion Criteria:  18-75 years old Confirmed cirrhosis by clinical or pathological biopsy Previous endoscopic treatment of esophageal and gastric varices, including but not limited to sclerotherapy, injection of tissue adhesives, skin entrapment, etc Electronic gastroscopy is to be performed Voluntary informed consent  Exclusion Criteria:  Absolute contraindications:  Patients without surgical conditions or refusing any abdominal surgery (once the capsule is stranded, it cannot be removed by surgery) There is a pacemaker in the body, except that the pacemaker is a new MRI compatible product Electronic devices such as cochlear implants, magnetic metal drug infusion pumps, nerve stimulators and magnetic metal foreign bodies are implanted in the body; .Women during pregnancy  Relative contraindication:  Gastrointestinal obstruction, stenosis, and fistula are known or suspected Dysphagia