In this paper, a discrete-time SIR epidemic model with nonlinear incidence and recovery rates is obtained by using the forward Euler’s method. The existence and stability of fixed points in this model are well studied. The center manifold theorem and bifurcation theory are applied to analyze the bifurcation properties by using the discrete time step and the intervention level as control parameters. We discuss in detail some codimension-one bifurcations such as transcritical, period-doubling and Neimark–Sacker bifurcations, and a codimension-two bifurcation with 1:2 resonance. In addition, the phase portraits, bifurcation diagrams and maximum Lyapunov exponent diagrams are drawn to verify the correctness of our theoretical analysis. It is found that the numerical results are consistent with the theoretical analysis. More interestingly, we also found other bifurcations in the model during the numerical simulation, such as codimension-two bifurcations with 1:1 resonance, 1:3 resonance and 1:4 resonance, generalized period-doubling and fold-flip bifurcations. The results show that the dynamics of the discrete-time model are richer than that of the continuous-time SIR epidemic model. Such a discrete-time model may not only be widely used to detect the pathogenesis of infectious diseases, but also make a great contribution to the prevention and control of infectious diseases.