Criminal Code of the Armed Forces Article 22

A person who searches out or gathers military confidential information in paragraph Ⅰof Article 20 shall be punished with imprisonment for not less than one year and not more than seven years. That if he committed the offence in wartime shall be punished with imprisonment for not less than three year and not more than ten years.A person who searches out or gathers intelligence for an enemy in paragraph Ⅰof Article 20 shall be punished with imprisonment for not less than five years and not more than ten years. If he committed the offence in wartime shall be punished with imprisonment for not less than seven year or imprisonment for life.An attempt to commit an offence specified in one of the two preceding paragraphs is punishable.A person who commits the offence unpremeditatedly in the preceding paragraph shall be punished with imprisonment for not more than two years, detention, or a fine of not more than 200,000 yuan.
中文原文 陸海空軍刑法第22條
刺探或收集第二十條第一項之軍事機密者,處一年以上七年以下有期徒刑。
戰時犯之者,處三年以上十年以下有期徒刑。
為敵人刺探或收集第二十條第一項之軍事機密者,處五年以上十二年以下有期徒刑。
戰時犯之者,處無期徒刑或七年以上有期徒刑。
前二項之未遂犯,罰之。
預備或陰謀犯第一項或第二項之罪者,處二年以下有期徒刑、拘役或新臺幣二十萬元以下罰金。

English translation for reference only; the Chinese text prevails. Not legal advice.