Merge branch 'dev_trustie' into dev_chain

This commit is contained in:
sylor_huang@126.com 2020-06-30 11:43:51 +08:00
commit b0afa38258
1 changed files with 2 additions and 1 deletions

View File

@ -24,9 +24,10 @@ class Gitea::Repository::Entries::ListService < Gitea::ClientService
end
def render_result(response)
body = JSON.parse(response.body)
case response.status
when 200
JSON.parse(response.body).merge({"status": 1})
body.merge!({"status": 1})
else
{'status': -1, 'message': "#{body['message']}"}
end