You've already forked qlg.tsgz.moe
addons
extend
hyhproject
admin
app
common
conf
controller
Alipays.php
Appport.php
Areas.php
Articles.php
Auth.php
Base.php
Brands.php
Carts.php
Cashconfigs.php
Cashdraws.php
Chain3.php
Chain3base.php
Ect.php
Ectwallets.php
Error.php
Favorites.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsconsult.php
Index.php
Invoices.php
Juhui.php
Logmoneys.php
Messages.php
News.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Position.php
Qlgpay.php
Shoporders.php
Shopping.php
Shops.php
Switchs.php
Tag.php
Tags.php
Tmp.php
Unionpays.php
UserLevel.php
Useraddress.php
Users.php
Userscores.php
Uservouchers.php
Wallets.php
Weixinpays.php
model
validate
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
admin.php
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
50 lines
959 B
PHP
Executable File
50 lines
959 B
PHP
Executable File
<?php
|
|
namespace wstmart\app\controller;
|
|
use wstmart\app\model\Messages as M;
|
|
/**
|
|
* ============================================================================
|
|
* 商城消息控制器
|
|
*/
|
|
class Messages extends Base{
|
|
// 前置方法执行列表
|
|
protected $beforeActionList = [
|
|
'checkAuth'
|
|
];
|
|
/**
|
|
* 查看商城消息
|
|
*/
|
|
public function msgList(){
|
|
$m = new M();
|
|
exit(jsonReturn('',1,$m->pageQuery()));
|
|
//return $this->fetch('users/messages/list');
|
|
}
|
|
/**
|
|
* 获取列表
|
|
*/
|
|
public function pageQuery(){
|
|
$m = new M();
|
|
return $m->pageQuery();
|
|
}
|
|
/**
|
|
* 获取指定ID详情
|
|
*/
|
|
public function getById(){
|
|
$m = new M();
|
|
exit(jsonReturn('',1,$m->getById()));
|
|
}
|
|
/**
|
|
* 删除消息
|
|
*/
|
|
public function del(){
|
|
$m = new M();
|
|
return $m->del();
|
|
}
|
|
/**
|
|
* 批量删除消息
|
|
*/
|
|
public function batchDel(){
|
|
$m = new M();
|
|
return $m->batchDel();
|
|
}
|
|
}
|