The health code does not change with your location. If you are in Fangshan District, Beijing, after searching for the health code from Alipay, the health code of Beijing Province will be displayed first. If you want to transfer the health code of Hebei province back, you can change it in the health code interface.
Now Alipay has a national unified health code, which can be used regardless of provinces. Inside, you can find information about nucleic acid testing and vaccination.