Dozens of cases were reported, sparking fears that Beijing could face a similar situation to Shanghai.