The specific impact of the COVID-19 pandemic on China stock market is currently unclear. The data of COVID-19 pandemic and 7048 official media reports are obtained via crawler technology from 2020 to 2021. This study compares and analyzes the impact of the two outbreaks on the stock market, focusing on official media reports and the pandemic prevention and control. The findings show that the two outbreaks of COVID-19 have different impacts on China stock market. The negative reports of official media have a negative impact on stock market, the positive reports have a short-term positive impact on stock market.