作者 anyv
1 个管道 的构建 通过 耗费 0 秒

搜索

... ... @@ -181,7 +181,8 @@ class IndexController extends WeChatBaseController
*/
public function search_salesman_goods(){
$data_salesman_goods = Db::name('goods') -> where("type =2 book_name") -> where('book_name','like',"%".$_POST['book_name']."%") -> select();
$book_name = $_POST['book_name'];
$data_salesman_goods = Db::name('goods') -> where("type =2 book_name") -> where('book_name','like',"%$book_name%") -> select();
$this -> assign('data_salesman_goods',$data_salesman_goods);
return $this -> fetch();
... ...