Commit 3b8d2193800268b1f7f339a037c784ba04d6b747
1 parent
05e7fbda
[留言板]后台留言删除
Showing
1 changed file
with
30 additions
and
0 deletions
trunk/Message/Apicp/Controller/Message/DelController.class.php
0 → 100644
1 | +<?php | |
2 | +/** | |
3 | + * User: <362431947@qq.com> | |
4 | + * Date: 2018-10-12 Time: 17:52 | |
5 | + */ | |
6 | +namespace Apicp\Controller\Message; | |
7 | + | |
8 | +use Common\Model\MessageModel; | |
9 | + | |
10 | +class DelController extends \Apicp\Controller\AbstractController | |
11 | +{ | |
12 | + /** | |
13 | + * 留言删除 | |
14 | + * @author <362431947@qq.com> | |
15 | + * @date 2018-10-10 | |
16 | + */ | |
17 | + public function Index_post() | |
18 | + { | |
19 | + $input = I('post.'); | |
20 | + | |
21 | + $message_id = intval($input['message_id']); | |
22 | + if(! $message_id){ | |
23 | + E('_ERROR_MESSAGE_ID_EMPTY'); | |
24 | + } | |
25 | + | |
26 | + $m_message = new MessageModel(); | |
27 | + | |
28 | + $m_message->del($message_id); | |
29 | + } | |
30 | +} | |
0 | 31 | \ No newline at end of file | ... | ... |