fixed diff接口切换到hat

This commit is contained in:
xxq250 2023-07-11 17:06:04 +08:00
parent b1e55baf36
commit 86a583017b
2 changed files with 2 additions and 2 deletions

View File

@ -1103,7 +1103,7 @@ class ApplicationController < ActionController::Base
"author_time": commit['commit']['author']['date'],
"committer_time": commit['commit']['committer']['date'],
"content": commit['commit']['message'],
"commit_diff": commit_diff['Files'].to_s
"commit_diff": commit_diff.present? ? commit_diff['Files'].to_s : ""
}.to_json
resp_body = Blockchain::InvokeBlockchainApi.call(params)
if resp_body['status'] == 7

View File

@ -16,7 +16,7 @@ class Gitea::Commit::DiffService < Gitea::ClientService
end
def call
response = get(url, params)
response = get(url, params, true)
render_result(response)
end