【类 型】:
【原 因】: 【过 程】: 【影 响】:
This commit is contained in:
parent
aa84b9f808
commit
9a01d3904e
@ -427,6 +427,30 @@ class AdminController extends PublicController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 删除公告
|
||||||
|
*/
|
||||||
|
public function deleteMessage()
|
||||||
|
{
|
||||||
|
|
||||||
|
// 权限判断
|
||||||
|
if ($this->tokenShop_id != C('powerId')) {
|
||||||
|
$where['shop_id'] = $this->tokenShop_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_REQUEST['delIdArr']) {
|
||||||
|
$where['id'] = array("in", $_REQUEST['delIdArr']);
|
||||||
|
|
||||||
|
$messageDb = D('message'); // 表名为 message
|
||||||
|
if ($messageDb->where($where)->delete()) {
|
||||||
|
echo json_encode(array('status' => 1, 'msg' => '删除成功'));
|
||||||
|
} else {
|
||||||
|
echo json_encode(array('status' => 0, 'msg' => '删除失败'));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo json_encode(array('status' => 0, 'msg' => '参数有误'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 分类列表
|
* @description: 分类列表
|
||||||
|
Loading…
Reference in New Issue
Block a user