in view of the common distribution mode of urban logistics under the environment of electronic commerce, the dynamic uncertainty of urban road network is considered on the basis of the optimization of distribution path. Taking the minimum cost as the objective function, the logistics distribution path optimization model of hard time window under dynamic road network is established. Genetic algorithm is used to solve the model. Finally, an example is given to verify the validity of the model.