Commit b50aba64e9e3603b07ee1400afc6e761e8aae5fd
1 parent
04f79876
【留言板】初始化应用
Showing
1 changed file
with
20 additions
and
0 deletions
trunk/Message/Api/Controller/Message/MessInputController.class.php
... | ... | @@ -8,14 +8,34 @@ |
8 | 8 | |
9 | 9 | namespace Api\Controller\Message; |
10 | 10 | |
11 | +use Common\Model\RightModel; | |
12 | + | |
11 | 13 | class MessInputController extends \Api\Controller\AbstractController |
12 | 14 | { |
15 | + /** | |
16 | + * 是否需要登录 | |
17 | + * | |
18 | + * @var bool | |
19 | + */ | |
20 | + protected $_require_login = false; | |
21 | + | |
13 | 22 | |
14 | 23 | public function Index_post() |
15 | 24 | { |
25 | + | |
16 | 26 | $this->_result = [ |
17 | 27 | 'mess' => '请求错误', |
18 | 28 | ]; |
19 | 29 | } |
20 | 30 | |
31 | + /** | |
32 | + * 验证提交参数字段合法性 | |
33 | + * | |
34 | + * @param array $post | |
35 | + * @return bool | |
36 | + */ | |
37 | + private function checkFields($post = []) | |
38 | + { | |
39 | + return true; | |
40 | + } | |
21 | 41 | } | ... | ... |