《三国志·蜀书·邓张宗杨传》
刘璋时期，他担任中郎将，率兵在涪县抗击刘备，后来到刘备处投降。
刘璋时，为中郎将，将兵拒先主於涪，诣降。
During Liu Zhang's time, he served as General of the Household Cavalry, led troops in Fuxian County to resist Liu Bei, and later surrendered to Liu Bei.
<s>[INST] Translate the following Classical Chinese text into modern Chinese: 刘璋时，为中郎将，将兵拒先主於涪，诣降。 [/INST] 刘璋时期，他担任中郎将，率兵在涪县抗击刘备，后来到刘备处投降。</s>
Translate the following Classical Chinese text into modern Chinese: 刘璋时，为中郎将，将兵拒先主於涪，诣降。
user
刘璋时期，他担任中郎将，率兵在涪县抗击刘备，后来到刘备处投降。
assistant