mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
change
This commit is contained in:
@@ -24,9 +24,10 @@ class Gitea::Repository::Entries::ListService < Gitea::ClientService
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render_result(response)
|
def render_result(response)
|
||||||
|
body = JSON.parse(response.body)
|
||||||
case response.status
|
case response.status
|
||||||
when 200
|
when 200
|
||||||
JSON.parse(response.body).merge({"status": 1})
|
body.merge!({"status": 1})
|
||||||
else
|
else
|
||||||
{'status': -1, 'message': "#{body['message']}"}
|
{'status': -1, 'message': "#{body['message']}"}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user