The invention belongs to the technical field of door locks, and particularly relates to a door lock control method and a door lock. The door lock control method comprises the steps that the door lockis initialized when a door is in a closed state, after door lock initialization is finished, a six-axis sensor arranged on the door lock is used for obtaining the motion track information of the door,and whether the door is in the closed state or not is judged according to motion track information; if the door is in the closed state, the door lock is controlled to be closed; and if the door is inthe opened state, the door lock is controlled to be opened. The door and door lock integrated door lock control in which the door lock is closed if the door is closed and the door lock is opened if the door is opened is achieved, and the technical problems that in the prior art, the door state and the door lock state are asynchronous, and consequently, potential safety hazards exist in the door lock are solved.