wupengfei 2 年之前
父節點
當前提交
135a668083
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      application/api/controller/Video.php

+ 1 - 5
application/api/controller/Video.php

@@ -115,13 +115,9 @@ class Video extends Base
             $search_log =    UserSearch::where('user_id',$this->user_id)->order('id desc')->limit(0,5)->column('title');
             $search_arr = [];
             foreach ($search_log as $t){
-                $search_arr[] =  " title like '".'%'.$t."'%" .' ';
+                $search_arr[] =  " title like '".'%'.$t."%'" .' ';
             }
             $where_str  = !empty($search_arr) ?  implode(' OR ',$search_arr) : '';
-           $ql = VideoIntro::where($sel_where)
-                ->where($where_str)
-                ->limit($this->off_set,$this->page)->buildSql();
-           var_dump($ql);
         }
         $order = 'is_top desc,sort desc ,id desc';
         if($sort_type == 2)$order = 'id asc';