In his later years, Qianlong indulged in pleasure and was obsessed with novel plays, but Ji Xiaolan's secret was hidden in his dreams - he could always get a glimpse of the context of modern opera novels. In order to persuade the emperor not to forget the affairs of the court, he adapted "Returning the Princess" and "The Legend of Zhen Huan" into Qing palace scripts, using the core of "family love is precious" and "warning of political interference in the harem" to please the emperor, which made Qianlong very happy and ordered rehearsals in the palace. This move angered He Shen, who secretly tampered with the script and added vulgar plot points to frame Ji Xiaolan. At the critical moment, Ji Xiaolan improvised the lyrics at the rehearsal and incorporated Heshen's conspiracy into the plot, allowing Qianlong to see through the plot on the spot. Although He Shen was not dealt with immediately, Qianlong trusted Ji Xiaolan more and more. Since then, Ji Xiaolan used his pen as his blade and borrowed modern adaptations of scripts to quietly influence the emperor in the palace music and songs, making the Qing palace stage his "position to persuade politics."