From the Visa Policy (Transit) of China
The 24-hour transit rule allows multiple stops within Mainland China
for most airports, as long as the traveler has a flight, cruise or
train segment leaving Mainland China in 24 hours, so it is possible to
enter through a port of entry in China, take multiple segments of domestic flights within China, and depart from a different port of
entry in less than 24 hours. Multi-stop transit is not allowed in
some airports listed below.
Distinct from the transit rules of other countries, all travelers in
transit may be required to go through immigration and customs even if
they do not intend to leave the sterile transit area, except for
passengers arriving and departing from Beijing Capital International
Airport where they can proceed directly to the sterile transit area
without immigration checks.
In short, you are required to use a 24-hour TWOV.
Note: As a general policy, if your transit has a domestic segment, on most cases, you will need to enter the country and will probably get a passport stamp.
There is a 24-hour TWOV without an entry permit and then a special
transit with an entry permit. Only the second is valid when transiting
multiple airports. When transiting without entry permit, you must stay
within the one airport's international transit area, and you will not
receive any stamp in your passport (ref. Timatic and personal