In some cases, it’s possible to extend your visa while in China. Contact the local Public Security Bureau for details.