Zhang Quanyi became governor of Heyang while Li Hanzhi was preoccupied with his campaign.
After Huang Chao was eventually defeated by Tang forces and chased out of Chang'an, Zhang Quanyi joined the army of the Tang general Zhuge Shuang the military governor (Jiedushi) of Heyang Circuit (, headquartered in modern Jiaozuo, Henan). 
