The invention provides a construction method of a photo-assisted bipolar self-energized aptamer sensor, which is used for rapidly, simply, economically and sensitively detecting lincomycin (LIN), and comprises the following steps: 1, preparing a photo-anode material nitrogen-doped graphene-loaded titanium dioxide (TiO2 / NG) through adoption of a one-step hydrothermal method, preparing a photocathode material molybdenum disulfide nanosheet loaded zinc phthalocyanine (ZnPc / MoS2) by a cosolvent method without chemical reaction; and 2, constructing the light-assisted bipolar self-energized aptamer sensor for detecting the LIN. The light-assisted bipolar self-energized adapter sensor constructed by the invention does not need an external power supply, realizes two-dimensional energy conversion from light energy and chemical energy to electric energy, and has unique advantages in the aspect of pushing miniature and convenient sensing equipment. Meanwhile, the cathode and the anode of the sensor are both made of photosensitive semiconductor materials, so that the use of biomasses such as enzymes and microorganisms and a noble metal Pt electrode is avoided, the solar energy utilization efficiency is greatly improved, and the manufacturing cost is reduced.