At first, I wonder know which part of your eyes has suffered from sunburn? The eyeball and cornea? Or just the eyelids and eyes sockets? As for the eyelid and eyes sockets, you can apply some cold compress and eyes scream to nourishing it, usually one week is enough for the hurt to recover. However, if you are the former one, it may serious than the later one. The electric ophthalmia may be caused by the sunburn. The eyes may hurt and then form the perpetual visual paropsia even blindness. The long time's direct watching sun light, the ultraviolet and infrared will lead to retina yellow spot burnt to form the retinitis which have no way to cure. For the mild injury, boric acid and some eyes drop may help to do the treatment. Please go to doctor for the details.