Abdominal pain and farting all the time may be caused by gastrointestinal spasm. Gastrointestinal spasm is a strong contraction of the gastrointestinal tract, which can cause abdominal pain and abdominal pain in the form of paroxysmal colic, and gastrointestinal spasm can make the peristalsis of the gastrointestinal tract accelerate and cause farting all the time. Patients with gastrointestinal spasm can use antispasmodic drugs, such as 654-2, to relieve pain. When using antispasmodic drugs, patients may experience side effects such as dry mouth and rapid heartbeat, etc. After recovering from gastrointestinal spasm, patients need to eat a light diet and eat more easily digestible food in the near future, so that the gastrointestinal tract can get sufficient rest. If the patient’s symptoms are not relieved after treatment, further examination is needed to clarify the cause.