|
|
@@ -42,6 +42,9 @@ module Gitea |
|
|
def render_result(response) |
|
|
def render_result(response) |
|
|
if response.status == 200 |
|
|
if response.status == 200 |
|
|
@result = JSON.parse(response.body) |
|
|
@result = JSON.parse(response.body) |
|
|
|
|
|
else |
|
|
|
|
|
Rails.logger.info("Gitea::Repository::Entries::UpdateService error======#{response.body}") |
|
|
|
|
|
@error = "更新失败" |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|