Beijing adopts wartime measures