Residents in two of China's biggest cities got to enjoy only about a month of relief before cases re-emerged, prompting tighter rules on testing and vaccination.