Discharge principle of energy storage charging pile