The ending of the movie was: In the final duel, Li Xiaoyao and Bai Xiaonian finally came together, but they also realized that they could no longer recover the people and things they had lost. In the last scene, Li Xiaoyao told Bai Xiaonian about his feelings and expressed that he would always miss the days that they had spent together. Meanwhile, Bai Xiaonian silently left Li Xiaoyao and began a new journey with his dreams and memories. The movie ended with the two men shaking hands and parting ways, leaving the audience with deep thoughts and insights. As for who the mole was, it was not clearly revealed in the ending of the movie.