Basis for judging whether the energy storage charging pile is damaged