Switch power supply control circuit and method

The invention discloses a switch power supply control circuit and a method. The circuit comprises a switch power supply chip, a protection module, and an adjustment module, wherein the protection module is used for carrying out surge protection on the control circuit and adjusting a protection interval for surge protection, the protection module comprises multiple serial rectifier diodes, and as for a different protection interval, the number of rectifier diodes is correspondingly different; and the adjustment module is respectively connected with the protection module and the switch power supply chip for adjusting the magnitude of input voltage of the switch power supply chip, and the input voltage is first output voltage after AC power passes through the protection module. The technical problem that the switch power supply control circuit in the prior art has a weak anti-surge ability can be solved.