We study the dynamical behavior of spinor particles, and get the energymomentum relation of charged particles by solving the Dirac equation. Based on the energy-momentum relation, we investigate the laws of thermodynamics and the weak cosmic censorship conjecture for the (2+1)-dimensional regular black hole with nonlinear electrodynamics sources in the normal phase space and the extended phase space. Our results show that the first law of thermodynamics as well as the weak cosmic censorship conjecture are valid in both the phase spaces. However, the second law of thermodynamics is violated in the extended phase space, implying that the first law and weak cosmic censorship conjecture do not depend on the phase space while the second law depends. In addition, in the extended phase space, we find the configurations of the extremal and nearextremal black holes will not be changed for the final states and initial states are the same.