Commit 13c2ced1e6054b2999de4c29876aa1d1701549ac
1 parent
839c2d8a
【留言板】 代码简单优化
Showing
1 changed file
with
2 additions
and
1 deletions
trunk/Message/Api/Controller/Message/MessInputController.class.php
... | ... | @@ -63,7 +63,7 @@ class MessInputController extends \Api\Controller\AbstractController |
63 | 63 | // 附件上传成功 取得附件路径 $attPath |
64 | 64 | if (($aid = $attachmentModel->insert($data)) != null) { |
65 | 65 | $this->_result = "留言成功,上传附件成功。"; |
66 | - }else{ | |
66 | + } else { | |
67 | 67 | // 上传附件失败后 进行相应的处理 |
68 | 68 | $this->_result = "上传附件失败。"; |
69 | 69 | } |
... | ... | @@ -92,6 +92,7 @@ class MessInputController extends \Api\Controller\AbstractController |
92 | 92 | |
93 | 93 | header('Location: http://lys.com/mess_front/list.php'); |
94 | 94 | } |
95 | + | |
95 | 96 | /** |
96 | 97 | * 验证提交参数字段合法性 |
97 | 98 | * | ... | ... |