Near-infrared (NIR) luminescent lanthanide materials hold great promise for bioanalysis, as they have anti-interference properties. The approach of efficient luminescence is sensitization through a reasonable chromophore to overcome the obstacle of the aqueous phase. The involvement of the surfactant motif is an innovative strategy to arrange the amphiphilic groups to be regularly distributed near the polymer to form a closed sensitized space. Herein, a lanthanide polymer (TCPP-PEI70K-FITC@Yb/SDBS) is designed in which the meso-tetra(4-carboxyphenyl)porphine (TCPP) ligand serves as both a sensitizer and photocatalytic switch. The surfactant sodium dodecyl benzenesulfonate (SDBS) wraps the photosensitive polymers to form a hydrophobic layer, which augments the light-harvesting ability and expedites its photocatalysis. TCPP-PEI70K-FITC@Yb/SDBS is subsequently applied as an amplified photocatalysis toolbox for universally regulating the generation of reactive oxygen species (ROS). Boosting 3,3',5,5'-tetramethylbenzidine (TMB) oxidation to produce blue products, a dual-mode biosensor is fabricated for improving the diagnosis of programmed death ligand-1-positive (PDL1) cancer exosomes. Exosomes were captured by Fe3O4 modified by the PDL1 aptamer, enabling replacement of alkaline phosphatase (ALP)-labeled multiple hybridized chains; then, the isolated ALP triggered a hydrolysis reaction to block the generation of oxTMB. Detection sensitivity improves by 1 order of magnitude through SDBS modulation, down to 104 particles/mL. The sensor performed well clinically in distinguishing cancer patients from healthy individuals, expanding physiological applications of near-infrared lanthanide luminescence.