fixed diff接口切换到hat
This commit is contained in:
parent
b1e55baf36
commit
86a583017b
|
@ -1103,7 +1103,7 @@ class ApplicationController < ActionController::Base
|
||||||
"author_time": commit['commit']['author']['date'],
|
"author_time": commit['commit']['author']['date'],
|
||||||
"committer_time": commit['commit']['committer']['date'],
|
"committer_time": commit['commit']['committer']['date'],
|
||||||
"content": commit['commit']['message'],
|
"content": commit['commit']['message'],
|
||||||
"commit_diff": commit_diff['Files'].to_s
|
"commit_diff": commit_diff.present? ? commit_diff['Files'].to_s : ""
|
||||||
}.to_json
|
}.to_json
|
||||||
resp_body = Blockchain::InvokeBlockchainApi.call(params)
|
resp_body = Blockchain::InvokeBlockchainApi.call(params)
|
||||||
if resp_body['status'] == 7
|
if resp_body['status'] == 7
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Gitea::Commit::DiffService < Gitea::ClientService
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
response = get(url, params)
|
response = get(url, params, true)
|
||||||
render_result(response)
|
render_result(response)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue