Hello! In August in Shenzhen, my driving without a license motorcycle was arrested by the traffic police, detained for ten days and fined 2000 yuan. Is this legal?

Road Traffic Safety Law of the People's Republic of China

Ninety-ninth one of the following acts, the traffic administrative department of the public security organ shall impose a fine of two hundred yuan and two thousand yuan:

(a) driving a motor vehicle without obtaining a motor vehicle driving license, and the motor vehicle driving license is revoked or temporarily detained;

The motor vehicle driver's license may also be revoked if the actor is under any of the circumstances mentioned in Items (2) and (4) of the preceding paragraph; In case of any of the first, third, fifth to eighth cases, the person may be detained for not more than fifteen days.