If you have a China visa no need for proof of return ticket. You could make a land crossing to exit China.
If making a transit without visa, need a ticket exiting China to a third country within
the time limit Shanghai 48 hrs.. Beijing and others 24 hours.