Repair method for energy storage charging pile turning black