Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -189,11 +189,11 @@ class VideoTask extends Command | @@ -189,11 +189,11 @@ class VideoTask extends Command | ||
| 189 | public function getProjectKeyword($number,$keywords = []) | 189 | public function getProjectKeyword($number,$keywords = []) |
| 190 | { | 190 | { |
| 191 | 191 | ||
| 192 | - $keyword_id = Keyword::where('video', null)->whereIn("title", $keywords) | 192 | + $keyword_id = Keyword::where('video', null)->whereIn("title", $keywords)->whereNull('deleted_at') |
| 193 | ->where('route', 'not like', '%-tag')->whereNotNull('keyword_content')->limit($number)->pluck('id')->toArray(); | 193 | ->where('route', 'not like', '%-tag')->whereNotNull('keyword_content')->limit($number)->pluck('id')->toArray(); |
| 194 | $need = $number - count($keyword_id); | 194 | $need = $number - count($keyword_id); |
| 195 | if ($need > 0) { | 195 | if ($need > 0) { |
| 196 | - $keyword_arr_id = Keyword::where('video', null)->where('route', 'not like', '%-tag') | 196 | + $keyword_arr_id = Keyword::where('video', null)->where('route', 'not like', '%-tag')->whereNull('deleted_at') |
| 197 | ->whereNotNull('keyword_content')->whereNotIn('id', $keyword_id)->orderBy('id','asc')->limit($need)->pluck('id')->toArray(); | 197 | ->whereNotNull('keyword_content')->whereNotIn('id', $keyword_id)->orderBy('id','asc')->limit($need)->pluck('id')->toArray(); |
| 198 | } | 198 | } |
| 199 | $keyword_arr_id = array_merge($keyword_id, $keyword_arr_id); | 199 | $keyword_arr_id = array_merge($keyword_id, $keyword_arr_id); |
| @@ -55,13 +55,13 @@ class UpdateRoute extends Command | @@ -55,13 +55,13 @@ class UpdateRoute extends Command | ||
| 55 | */ | 55 | */ |
| 56 | public function handle(){ | 56 | public function handle(){ |
| 57 | $projectModel = new Project(); | 57 | $projectModel = new Project(); |
| 58 | - $list = $projectModel->list(['id'=>['in',[147]]]); | 58 | + $list = $projectModel->list(['id'=>['in',[1891]]]); |
| 59 | $data = []; | 59 | $data = []; |
| 60 | foreach ($list as $v){ | 60 | foreach ($list as $v){ |
| 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| 62 | ProjectServer::useProject($v['id']); | 62 | ProjectServer::useProject($v['id']); |
| 63 | $this->getProduct(); | 63 | $this->getProduct(); |
| 64 | -// $this->setProductKeyword(); | 64 | + $this->setProductKeyword(); |
| 65 | // $this->getBlog(); | 65 | // $this->getBlog(); |
| 66 | DB::disconnect('custom_mysql'); | 66 | DB::disconnect('custom_mysql'); |
| 67 | } | 67 | } |
| @@ -215,7 +215,7 @@ class UpdateRoute extends Command | @@ -215,7 +215,7 @@ class UpdateRoute extends Command | ||
| 215 | 215 | ||
| 216 | public function getProduct(){ | 216 | public function getProduct(){ |
| 217 | $productModel = new Product(); | 217 | $productModel = new Product(); |
| 218 | - $lists = $productModel->list(['status'=>2]); | 218 | + $lists = $productModel->list(['status'=>['!=',2]]); |
| 219 | if(!empty($lists)){ | 219 | if(!empty($lists)){ |
| 220 | foreach ($lists as $v){ | 220 | foreach ($lists as $v){ |
| 221 | if(!empty($v['route'])){ | 221 | if(!empty($v['route'])){ |
-
请 注册 或 登录 后发表评论