"The last mile" is a key problem that needs to be solved urgently by major e-commerce companies, and also an important means to improve their competitiveness in e-commerce activities. In this paper, aiming at the problems existing in the current community intelligent logistics, from the perspective of the entire logistics system, combined with the actual distribution of logistics sites and distribution methods, we studied the scheduling problem of UAVs using different strategies when returning to the site after distribution. First, the UAV distribution time model is established, and then the model is solved with the minimum completion time of goods distribution as the goal. Finally, the feasibility of the algorithm is verified through simulation experiments, and the optimal scheduling strategy of UAV is given in combination with the actual operation, thus guiding e-commerce to build a reasonable intelligent logistics system.