In the third year of Daoguang (1823), Karmalan of Taiwan Province awarded Fuzhou, Yao Ying, and He Liang presented a poem. Yao Ying praised: "Li He (Bai) and others!" Daoguang four years (1824), procurator Shen Weiqiao, the first in the eight public examinations. The following year, he failed in Beijing and befriended Xu Baoshan, Zheng, Huang Juezi, Tang Peng and Pan Deyu. Anyone who "speaks poetry" knows that Fu Heng's name is Zeng Huan, and Wen Hengfu is famous, and all his colleagues are celebrities. Zhang Jiliang laughed at him for "not knowing how to love himself" and "looking down on the world". Zeng Huan was furious. "It was destroyed by various nobles, and Hengfu took this as a negative name." Living in Kyoto for three years gave him the opportunity to observe and study various social ills at that time more deeply and extensively, so as to explore the methods of reform and "governance". He said: "I have lived in Doumen for three years, and I can talk about its advantages and disadvantages." In the eighth year of Daoguang (1828), he further proposed: "This year, we will reward you with the method of Shen and Han; Use the laws of management and business to manage money and strengthen the army; The family is frugal, and people are pregnant with money. It is always a shock, and the source is clear. "
In the ninth year of Daoguang (1829), Zhang Jiliang participated in the reconstruction of Fujian Tongzhi and edited it separately. Just as the manuscript was about to go to press, an argument about the content of the manuscript broke out. Zhang Jiliang insisted on his point of view and left angrily because of "disagreement with all parties".
In the 11th year of Daoguang (183 1), Zhang Jiliang went to Beijing to take the exam again, and came last again. Later, Zhang Jiliang lived in Xishan Temple and studied. He often interacted with Gong Zizhen, Wei Yuan, Yao Ying and Tang Peng, discussing the national economy and people's livelihood with each other and commenting on "the advantages and disadvantages of the present age". At the same time, Zhang Jiliang wrote to the Governor of Hedong, Lin Zexu, expressing his willingness to write a book about the strategy of governing Hedong. He said that this book "draws lessons from predecessors' theories, examines today's situation, and combines the traces before and after the East River regulation into a book"; The only way for deacons to write books is to control the speed of writing books, and to be bright and confident. "
In the 13th year of Daoguang (1833), he wrote to Lv Kun, the governor of Guangdong and Guangxi, to show his hatred of opium flooding. He said in "Shang Lu Houshan Palace Protection Book": "In Guangdong, some people say that they want to buy a kiln mouth, and some people say that they want to get a crab and send it." "They move fast and fierce, even if they meet a sentry ship, it's nothing." As a result, "the order prohibiting opium from importing and exporting silver is useless", even if the patrol boat wins one or two. "He hoped that Lv Kun would strengthen its confidence in banning smoking and take decisive measures." First, take the fast crab and make an unannounced visit to the kiln entrance. "Although Lv Kun appreciated Zhang Jiliang's talent, he was not keen on banning opium. He didn't take Zhang Jiliang's advice.
In the fifteenth year of Daoguang (1835), he took part in the rural examination in Fuzhou and changed his name to Hengfu. The next year, I went to Beijing to try again. In Kyoto, he sang poems and discussed current affairs with Huang Jue Zi, Chen Qingyong, Zang Youqing and Wu Jiabin, which had great social influence. He made a particularly fierce attack on bureaucratic corruption at that time. "For the big mansion, it is happy to see gold; As a county magistrate, the law is severely punished in order to plunder money and food from the city and bribe the big government with easy money to make it happy. As for the great famine, after eating several times, people even drove women out of the valley on the pretext of collecting food to buy food. They were afraid to go back to the inner door for days and nights, but the chickens, dolphins, cows and dogs were gone. " In April of the 18th year of Daoguang (1838), Huang Jue proposed to Daoguang Emperor to change the old chapter, ban opium and "severely punish smoking". Jill Zhang Liang drafted "Please strictly prevent leakage and discount in order to cultivate national capital". Later, in Lin Zexu's poem "Crying for Zhang Hengfu", there is also a sentence "I will write my life's ambition, but I still blame my ignorance", which affirms and praises his contribution to insisting on smoking ban all his life.
In May of the 20th year of Daoguang (1840), after the Opium War broke out, Zhang Jiliang opposed aggression and advocated compromise. He wrote a series of anti-imperialist patriotic poems, such as Gossip, Suichuan Waste Pay and Peace Poem, Three Signs to Send Master Yao from Dongyang County, Delay, Zou Zhongquan's Current Affairs Drama, Chen's Death Poem, etc., denouncing the invaders that "the evil spirit in May is dark in Humen". Strongly criticized the face of capitulationists, and enthusiastically praised the anti-Japanese spirit of "the righteous fight for Dongshan" such as Sanyuanli. In the same year, Yao Ying, a soldier in Taiwan Province Province, invited Zhang Jiliang to Taiwan Province. Zhang Jiliang was very happy and left for Xiamen at once. When he arrived in Xiamen, it was too stormy to cross the sea, so he asked someone to draw a portrait of himself, wrote a poem on it and sent it to Yao Ying. In Taiwan Province Province, Yao Ying led the people to strictly observe the customs, cracked down on smuggling and banned opium from entering the country. "Offenders will be punished, and those who repeat it will die", which makes British opium traders daunting. In the 21st year of Daoguang (184 1), Yao Ying cooperated closely with company commander Da Hongga to repel the British invasion twice. In March of the 22nd year of Daoguang, an English ship invaded Da 'an Port in Taiwan Province Province. Yao Ying relied on fishermen to lure the enemy deeper, wiped out more than 100 people in one fell swoop, and seized 13 cannons. When Zhang Jiliang heard about it, he happily wrote a poem to congratulate his old friend. However, after the signing of treaty of nanking, Yao Ying was blackmailed by the invaders and persecuted by the surrenders. In March of the 23rd year of Daoguang (1843), she was remanded and sent to Kyoto for punishment.
At that time, Zhang Jiliang was seriously ill at home. Knowing that Yao Ying "worked for the British and invaded Jiangnan", he went to Wuzhong and "stayed late". In July, Yao Ying left Beijing for Huaishang, and Zhang Jiliang accompanied Yao Ying to Kyoto, writing "Injustice in Prison" for Yao Ying. Yao Yingbai was released from prison, and Zhang Jiliang was overjoyed. He and Yao Ying lived in the old house in Yangjiaoshan, Zhaziqiao. Unfortunately, he suffered a relapse and died on19 October at the age of 43. After Zhang Jiliang's death, Yao Ying hosted a libation for him and arranged a funeral. "Take the coffin to Tongcheng and ask someone to call his son to Fujian for condolences." Zhang Jiliang's coffin was transported back to Jianning and buried in Baoping, Lantian, Jianning County. Yao Ying also wrote a biography specially for him, which truthfully clarified the truth of the condescension of famous officials in Kyoto that year, indicating that he had a "crazy name" and was ambitious, and especially praised him for "boosting morale and correcting the atmosphere". The famous poet and calligrapher He wrote an elegy: "In the same year of flesh and blood, poetry set the Minjiang River, and wine poured the Yan market; True blood man, born in stone, died in Jiaoshan. "
Zhang Jiliang was an official all his life, incompatible with vulgar literati, and dared to satirize powerful people, thus gaining a "crazy name". He himself said, "After ten years of fatigue, I have been angry for half my life, but I am willing to be a servant and get dusty." However, this is a last resort, life ear! "