On the basis of mobile phone positioning, big data analysis is carried out through consumption records, ride records, flight records, filling in travel information, scanning scene locations, etc. It is assumed that the color of health code will turn red in high-risk areas, which has made great contributions to effectively blocking the transmission chain.