Skip to content

Commit

Permalink
为admin库增加上传文件获取方法
Browse files Browse the repository at this point in the history
  • Loading branch information
CandyMi committed Jun 30, 2019
1 parent aa7f7b3 commit f78a09f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lualib/admin/httpctx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ function ctx:get_cookie (name)
return Cookie.getCookie(name)
end

-- 获取上传的文件
function ctx:get_files ()
return self._content.files
end

-- 获取请求参数表
function ctx:get_args ()
local args = self._content.args
Expand Down

0 comments on commit f78a09f

Please sign in to comment.