A 23-year-old man who lived a flashy lifestyle thanks to his online cannabis business has been jailed.