This paper proposes an inverted ternary organic photodetector (OPD), whose structure is ITO/PEIE/PC61BM/P3HT:PCPDTBT/MoO3 /Al. The use of PEIE as the cathode buffer layer avoids the influence of acidic PEDOT:PSS on the surface and life of the conventional device . The preparation of the ternary active layer ensures the photoelectric characteristics of the device in the visible-infrared broad spectrum range. In this experiment, the effect of PEIE thickness on the working mode of the device was studied by changing the concentration of the spin-coated PEIE solution. Finally, when the solution of PEIE is less than 0.45wt%, the device works in the diode mode, on the contrary, it works in the photoconductive mode. And under 550nm illumination (optical power 4.02mW/cm2) , the device achieves a responsivity of 1.64A/W and an external quantum efficiency of 370%.