add status for retur
This commit is contained in:
parent
a01fa6ab00
commit
8fe2589baa
app/api/mobile/apis
|
@ -91,7 +91,7 @@ module Mobile
|
|||
if project
|
||||
g = Gitlab.client # 用于通过gitlab api进行查询
|
||||
diff_result = g.commit_diff(project.id, params[:oldHash])
|
||||
Rails.logger.info diff_result[0].diff
|
||||
{status:0, diff_result:diff_result}
|
||||
else
|
||||
Rails.logger.info "project not found"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue