You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
LogSysData.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
TradeRule.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
hyhproject.tar.gz
index.html
index.php
reg.lock
robots.txt
56 lines
1.1 KiB
PHP
Executable File
56 lines
1.1 KiB
PHP
Executable File
<?php
|
|
namespace wstmart\admin\controller;
|
|
use wstmart\admin\model\Datas as M;
|
|
/**
|
|
* ============================================================================
|
|
* 系统数据控制器
|
|
*/
|
|
class Datas extends Base{
|
|
|
|
public function index(){
|
|
return $this->fetch("list");
|
|
}
|
|
/**
|
|
* 根据catId获取子数据
|
|
*/
|
|
public function childQuery(){
|
|
$m = new M();
|
|
return WSTGrid($m->childQuery());
|
|
}
|
|
/**
|
|
* 获取菜单列表
|
|
*/
|
|
public function listQuery(){
|
|
$m = new M();
|
|
return $m->dataQuery((int)Input("post.id",-1));
|
|
}
|
|
/**
|
|
* 获取菜单
|
|
*/
|
|
public function get(){
|
|
$m = new M();
|
|
return $m->getById((int)Input("post.id"));
|
|
}
|
|
/**
|
|
* 新增菜单
|
|
*/
|
|
public function add(){
|
|
$m = new M();
|
|
return $m->add();
|
|
}
|
|
/**
|
|
* 编辑菜单
|
|
*/
|
|
public function edit(){
|
|
$m = new M();
|
|
return $m->edit();
|
|
}
|
|
/**
|
|
* 删除菜单
|
|
*/
|
|
public function del(){
|
|
$m = new M();
|
|
return $m->del();
|
|
}
|
|
}
|