正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
@@ -181,9 +181,12 @@ class IndexController extends WeChatBaseController | @@ -181,9 +181,12 @@ class IndexController extends WeChatBaseController | ||
181 | */ | 181 | */ |
182 | public function search_salesman_goods(){ | 182 | public function search_salesman_goods(){ |
183 | 183 | ||
184 | - dump($_POST['book_name']);die; | ||
185 | - return $this -> fetch(); | ||
186 | - | 184 | + if($this -> request -> isPost()){ |
185 | + dump($_POST['book_name']);die; | ||
186 | + }else{ | ||
187 | + return $this -> fetch(); | ||
188 | + } | ||
189 | + | ||
187 | } | 190 | } |
188 | 191 | ||
189 | 192 |
-
请 注册 或 登录 后发表评论