change project.id to project.gpid

This commit is contained in:
nigel007 2019-05-26 14:49:24 +08:00
parent 8fe2589baa
commit f59d3f5114
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ module Mobile
project = Project.find_by_user_id_name(owner.id, params[:reponame])
if project
g = Gitlab.client # 用于通过gitlab api进行查询
diff_result = g.commit_diff(project.id, params[:oldHash])
diff_result = g.commit_diff(project.gpid, params[:oldHash])
{status:0, diff_result:diff_result}
else
Rails.logger.info "project not found"