The conventional method of extracting ocean surface currents by high-frequency over-the-horizon radar is based on the fixed first-order Bragg frequency formula and ignores the effects caused by the environment, especially in near-shore areas. In this letter, a current inversion model based on 2-D Fourier series expansion was developed. The first-order Bragg frequency and the Doppler offset induced by radial current are dealt with the bivariate functions of group distance and azimuth angle in the proposed method. By solving an overdetermined matrix equation with the least-square fitting method, the current at each detection grid can be estimated. As the Bragg frequency obtained by this new algorithm is adaptive to the environment, the accuracy of current measurement will be improved. The feasibility and effectiveness of the new method are verified with simulations and experimental results. The currents estimated by the traditional method and the new algorithm are compared with two in situ buoys. Results indicate that the new algorithm possesses comparable accuracy for far-shore areas and better accuracy for near-shore areas when compared with the conventional method.