Idk where you have been but in second tier cities I have seen public toilets as well. Maybe not on the outskirts but in central areas for sure.
Since then, Shanghai got reputation for well kept public toilets and them being supervised by the ministry of interior