they a bit strict with the hotels nowadays.
in my small city as a foreigner you can only stay in big expensive hotels (over 400kuai a night), the cheaper ones dont have licenses to receive foreigners and it seems that they care about that for some reason.