We continue the optimal control problem governed by the Keller-Segel equations. In the previous paper \cite{16}, we have proved existence of the optimal controls and the first order necessary condition. Here we will show that the optimal controls satisfy the feedback law expressed by the value function and the value function is a solution to the Hamilton-Jacobi equation in a weak sense.