The management of diabetic ulcers poses a significant challenge worldwide, and persistent hyperglycemia makes patients susceptible to bacterial infections. Unfortunately, the overuse of antibiotics may lead to drug resistance and prolonged infections, contributing to chronic inflammation and hindering the healing process. To address these issues, a photothermal therapy technique was incorporated in the preparation of wound dressings. This innovative solution involved the formulation of a self-healing and injectable hydrogel matrix based on the Schiff base structure formed between the oxidized Bletilla striata polysaccharide (BSP) and hydroxypropyltrimethylammonium chloride chitosan. Furthermore, the introduction of CuO nanoparticles encapsulated in polydopamine imparted excellent photothermal properties to the hydrogel, which promoted the release of berberine (BER) loaded on the nanoparticles and boosted the antibacterial performance. In addition to providing a reliable physical protection to the wound, the developed hydrogel, which integrated the herbal components of BSP and BER, effectively accelerated wound closure via microenvironment regulation, including alleviated inflammatory reaction, stimulated reepithelialization, and reduced oxidative stress based on the promising results from cell and animal experiments. These impressive outcomes highlighted their clinical potential in safeguarding the wound against bacterial intrusion and managing diabetic ulcers.