The invention provides an electronic lock, which relates to the technical field of electronic locksets and comprises a lock body, a flexible lock beam, a spring bolt, a jacking device and a
wireless controller, one end of the flexible lock beam is fixed to the lock body, and the other end is provided with a lock head
assembly capable of being inserted into a lock body lock hole. The jacking device comprises a jacking rod and a pinch bar; the pinch bar can drive the jacking rod to extend out of the lock body and is positioned between the fixed end of the flexible lock beam and the lock hole; the spring bolt is movably arranged in the lock body and can be selectively connected with the lock head
assembly and the ejector rod in a clamped mode, and double locking is achieved. The
wireless controller drives the lock tongue after receiving the
wireless signal, so that the lock tongue is separated from the lock head
assembly and the ejector rod at the same time, and unlocking is achieved. The flexible lock beam, the lock tongue and the jacking device are combined, so that the locking process is firmer, the device can adapt to canvas bag openings with different calibers, wireless
remote control unlocking is combined, the problems that a traditional mode is tedious in operation and low in efficiency are solved, the device is particularly suitable for automatic locking and unlocking of flexible packages such as canvas bags, and the logistics efficiency and reliability are effectively improved.