Charging dual-purpose solar energy storage system