The Chinese government willingly bought opium. So they weren't bothered about opium in their country.
It's a myth which has somehow been perpetrated that the Chinese government didn't want it in their country and they fought the British to prevent the stuff entering their country.