In Shanghai, citizens cannot leave the city unless they have a government-issues green QR code.