Merge remote-tracking branch 'origin/standalone_develop' into standalone_develop

This commit is contained in:
xxq250 2023-05-10 14:30:24 +08:00
commit 65f987af70
1 changed files with 2 additions and 1 deletions

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