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