The film was based on a novel of the same title written by Yan Yan (燕燕), while the film's screenplay was by Li Qiang, a Chinese scriptwriter, who had written the script of the 2005 film Peacock, directed by Gu Changwei.