The invention relates to a safely-locked multi-cabinet-door vending machine. A torsional spring is installed on a hinged shaft of each cabinet door, an electromagnetic lock is installed at the position, close to the most left side of the end face of the front side of each cabinet door, of each transverse plate, a stretchable ejector rod is arranged at the position, on the right side of each lock, of the front side of each transverse plate in an embedded mode, a pressure switch is installed at the position, on the right side of each ejector rod, on the end face of the front side of each transverse plate, the pressure switches, motors for controlling the ejector rods and the electromagnetic locks are all driven by a control module installed in an outer shell, and the surfaces of the outer sides of the cabinet doors are flush with the surface of a whole cabinet door. According to the safely-locked multi-cabinet-door vending machine, each cabinet door is flush with the surface of the outer shell, the anti-theft effect is strengthened, the cabinet doors are locked through the electromagnetic locks, the suction force is huge, opening of the cabinet doors is controlled by the ejector rods, the pressure switches and the control module, the user benefits are guaranteed, and structures are matched with each other to form the novel vending machine which is convenient to use, install and maintain.