What are the shameful historical allusions in Li Shangyin's poem "Xu Fei wants to make up half his face"?

The story tells the story of Xu Zhaopei, the concubine of Emperor Liang Wendi, who was dissatisfied with his estrangement from her, and cuckolded him heartily.

Xu Zhaopei was born into a noble family, and her father was a general in the imperial court. When she was young, she actually did nothing. When she reached the age of marriage, she married Liang Xiao Emperor Yi, who is not the emperor. Xiao Yi at this time can only be regarded as a relatively rich constantly chauffeured, and her background is naturally not as hard as that of Xu Zhaopei.

Xu Zhaopei is very possessive. She doesn't allow Xiao Yi to philander, and Xiao Yi is also very cooperative. But in the end, Xiao Yi became the emperor, and Xu Zhaopei could no longer restrict Xiao Yi. Xiao Yi also started his own harem life, and became increasingly indifferent to Xu Zhaopei.

And Xu Zhaopei is not a contented person, because Emperor Wen of Liang suffered from eye diseases and was blind in one eye, so every time Xu Zhaopei saw Emperor Wen of Liang, he only spent half a face to express his dissatisfaction with him. Later, Xu Zhaopei became bolder and bolder. When she saw a monk, she had sex with him in the temple, and then she also had sex with the poet.

Worst of all, when serving Emperor Wen of Liang, Xu Zhaopei took a fancy to the emperor's personal bodyguard, so he winked at the bodyguard, and the bodyguard understood, so he found an opportunity to seek excitement. Many people in the harem knew about it and asked the guards what they thought. The guards said that Xu Niang, who is half old, still has charm, and even compared Xu Zhaopei to an old dog. Although he is old, he is delicious.

Finally, the emperor couldn't bear it, forcing Xu Zhaopei to commit suicide, and Xu Zhaopei also ended his sinful life.