Browse Source

Merge pull request 'sub_entries接口返回 -2' (#48) from KingChan/forgeplus:chenjing into standalone_develop

pull/342/head
KingChan 3 years ago
parent
commit
044cd5b892
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/repositories_controller.rb

+ 2
- 1
app/controllers/repositories_controller.rb View File

@@ -110,7 +110,8 @@ class RepositoriesController < ApplicationController
result = interactor.result
@sub_entries = result.is_a?(Array) ? result.sort_by{ |hash| hash['type'] } : result
else
render_error(interactor.error)
status = interactor.error == "你访问的文件不存在"? -2 : -1
render_error(interactor.error,status)
end
end
end


Loading…
Cancel
Save