mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix
This commit is contained in:
parent
3d2e1299b1
commit
692d437c67
@ -1,8 +1,10 @@
|
||||
BaseController:subclass("IndexController",
|
||||
BaseController:subclass(
|
||||
"IndexController",
|
||||
{
|
||||
registry = {},
|
||||
models = {"sections", "category"}
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
local sectionsByCid = function(db, id)
|
||||
local cond = {exp = {["="] = {cid = id}}, order = {start = "DESC"}}
|
||||
|
@ -1,6 +1,9 @@
|
||||
BaseController:subclass("UserController",{
|
||||
BaseController:subclass(
|
||||
"UserController",
|
||||
{
|
||||
models = {"user"}
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
function UserController:index(...)
|
||||
local args = {...}
|
||||
|
@ -21,6 +21,7 @@ end
|
||||
|
||||
function BaseObject:error(msg, trace)
|
||||
html()
|
||||
--local line = debug.getinfo(1).currentline
|
||||
echo(msg)
|
||||
self:log(msg,"ERROR")
|
||||
if trace then
|
||||
|
Loading…
Reference in New Issue
Block a user