Traffic prediction is crucial for urban planning and traffic management, but existing methods overlook long-term relationships and anomaly influences.A global spatio-temporal fusion-based algorithm with anomaly awareness is proposed to address these issues.The algorithm incorporates an anomaly detection network to evaluate the impact of unexpected events on traffic prediction.Experiments using real-scenario datasets show that the proposed approach achieves state-of-the-art performance.