Unidirectional absorbers have potential applications in infrared detection, energy conversion, and solar energy harvesting. In this work, the absorption properties of a typical photonic crystal (PC) unidirectional absorber in the visible- and near-infrared modulated by graphene are systematically investigated. This is achieved by placing a typical non-periodic PC in an air medium. When the electromagnetic wave is incident vertically, double peak absorption is formed at wavelengths of 560 nm as well as 755 nm. The achieved non-reciprocal absorption is attributed by the surface plasmon resonance between the semiconductor and metal defect layers. In this work, the effect of period numbers is discussed to improve absorption performance. Meanwhile, the role of the metal defect layer is explored by the variation of the electric field inside the device. And the unidirectional absorption performance was verified. In addition, the absorption characteristics of the two types of semi-conductor material devices are analyzed. Compared to existing unidirectional devices, this structure has the advantages of small size, high efficiency, wide bandwidth, and easy optoelectronic integration. This structure, based on its own absorption and emission characteristics, can facilitate the development of LIDAR stealth devices, and thus, the advancement of infrared radar steganography.