In recent years, with the continuous development of solar blind ultraviolet photodetectors, III-V compounds are widely used as semiconductor materials. The nanowire array structure has excellent “light trapping effect”. However, if the distance of nanowire is too close, the secondary absorption problem of the nanowire will occur. If the distance of nanowire is too far, the number of photocarriers generated in the nanowire array per unit volume will be reduced. Meanwhile, the absorption capacity of the nanowire structure with different shapes is different. Based on this background, we studied the influence of the period and geometry of AlGaN nanowires with different Al components on the optical response properties. The finite time domain difference (FDTD) method was used to compare the quantum efficiency and collection efficiency of AlGaN nanowires with different Al components, we found that the quantum efficiency of the hexagonal nanowire array with Al component of 0.42 is as high as 45%, which is the highest in our structure. At the same time, its cutoff wavelength is at 280nm, which has excellent solar blindness. Therefore, the study in this paper can provide some theoretical reference for the experiment and preparation of AlGaN photocathode.