The invention belongs to the technical field of nano-composite materials and environment, relates to a photocatalyst, in particular to a carbon point-assisted Zn-AgIn 5 S 8 / Co 9 S 8 (ZAIS / Co 9 S 8 / CDs) preparation method of quantum dots, including: ZAIS / Co 9 S 8 The nanocomposite was dissolved in deionized water, added carbon dots, stirred evenly, placed in a reaction kettle at 110-180 °C, hydrothermally reacted for 4-10 h, preferably 110 °C for 4 h, cooled to room temperature, washed three times with ethanol and water successively, Obtained after drying, wherein the ZAIS / Co 9 S 8 : C dots: The solid-liquid ratio of deionized water is 10-100 mg: 0.1-10 mg: 5-50 mL. The catalyst prepared by the invention is applied to photohydrolysis to produce hydrogen. In the present invention, 3D hollow Co 9 S 8 Step-by-step modification of the surface of nanotubes with zero-dimensional Zn‑AgIn 5 S 8 Quantum dots and carbon dots to construct ZAIS / Co 9 S 8 / CDs heterojunction photocatalysts to enhance visible light hydrogen evolution. The preparation process is simple, cheap and easy to obtain, and the reaction time is short. The use of sunlight energy to convert into clean energy reduces energy consumption and reaction cost, facilitates mass production, is non-toxic and harmless, and meets the requirements of sustainable development.