|
@@ -18,6 +18,16 @@ function M.getOpenMainList()
|
|
end
|
|
end
|
|
return true, res
|
|
return true, res
|
|
end
|
|
end
|
|
|
|
+
|
|
|
|
+function M.getCloseMainList()
|
|
|
|
+ local sql = string.format("select * from `tg_main` where running_status = 0 ")
|
|
|
|
+ local isok,res;
|
|
|
|
+ res = mysqldbx.query(sql)
|
|
|
|
+ if #res <= 0 then
|
|
|
|
+ return true , {}
|
|
|
|
+ end
|
|
|
|
+ return true, res
|
|
|
|
+end
|
|
--page_size 是你想要在每页中显示的记录数。
|
|
--page_size 是你想要在每页中显示的记录数。
|
|
--page_number 页数
|
|
--page_number 页数
|
|
--获取所有主体
|
|
--获取所有主体
|
|
@@ -90,7 +100,7 @@ function syncMainAppletProduct(main_info)
|
|
-- table.insert(need_create_link_list,#need_create_link_list+1,{product_name=product.product_name,product_id=product.product_id,book_platform=product.book_platform})
|
|
-- table.insert(need_create_link_list,#need_create_link_list+1,{product_name=product.product_name,product_id=product.product_id,book_platform=product.book_platform})
|
|
-- end
|
|
-- end
|
|
-- end
|
|
-- end
|
|
- skynet.send("backmgr","lua","on_recv",nil,"ws_push_msg",cjson.encode({cmd="syncMain",data={ain_info=main_info}}))
|
|
|
|
|
|
+ skynet.send("backmgr","lua","on_recv",nil,"ws_push_msg",cjson.encode({cmd="syncMain",data={main_info=main_info}}))
|
|
end
|
|
end
|
|
|
|
|
|
function pushAddMainMsg(msg_body)
|
|
function pushAddMainMsg(msg_body)
|