Based on reverse recursion algorithm, the one-dimensional photonic crystal containing a Kerr nonlinear medium layer (AB)MD(BA)N is investigated to realize the unidirectional transmission function of all-optical diode by introducing additional dielectric layers. Results show that when a single-dielectric-layer (for example, dielectric layer A) or a doubledielectric-layer with different refractive index (for example, dielectric layer AB) is introduced in the outside of the structure, the bistable curve of the input and output light intensity for the forward and backward incident is separated, and the unidirectional transmission characteristics appear. Increasing the period of the double-dielectric-layer introduced in the structure, the unidirectional transmission wavelength range and the transmittance are both improved for the same intensity of incident light. Based on the analysis we present an optimized structure (AB)6 D(BA)8 (AB)2 . Numerical simulations demonstrate that the structure exhibit ideal unidirectional transmission characteristics. Besides, the wavelength range of unidirectional transmission is also extended with the increasing of the intensity of incident light. When the intensity of incident light is 1.48MW/m2 , the wavelength range of the unidirectional transmission is 1564.7nm1574nm with transmittance greater than 0.8. Compared with the results in available literatures, the proposed all-optical diode structure has the prominent characteristics of simple structure, wider wavelength range, and greatly reduced the intensity of incident light. The results are of great significance for the design of all-optical diode and other unidirectional transmission devices.