Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -86,9 +86,9 @@ class Demo extends Command | @@ -86,9 +86,9 @@ class Demo extends Command | ||
| 86 | if(!empty($lists)){ | 86 | if(!empty($lists)){ |
| 87 | foreach ($lists as $v){ | 87 | foreach ($lists as $v){ |
| 88 | if(!empty($v['keyword_video_id'])){ | 88 | if(!empty($v['keyword_video_id'])){ |
| 89 | - echo date('Y-m-d H:i:s') . 'id :'.$v['id'] . PHP_EOL; | ||
| 90 | foreach ($v['keyword_video_id'] as $val){ | 89 | foreach ($v['keyword_video_id'] as $val){ |
| 91 | $keywordRelaModel = new KeywordRelated(); | 90 | $keywordRelaModel = new KeywordRelated(); |
| 91 | + echo date('Y-m-d H:i:s') . 'keyword_id :'.$val . 'product_id :'.$v['id'] . PHP_EOL; | ||
| 92 | $keywordRelaModel->edit(['type'=>2],['keyword_id'=>$val,'product_id'=>$v['id']]); | 92 | $keywordRelaModel->edit(['type'=>2],['keyword_id'=>$val,'product_id'=>$v['id']]); |
| 93 | } | 93 | } |
| 94 | } | 94 | } |
| @@ -230,7 +230,7 @@ class AdsController extends BaseController | @@ -230,7 +230,7 @@ class AdsController extends BaseController | ||
| 230 | public function fbInquiryChart(Request $request) | 230 | public function fbInquiryChart(Request $request) |
| 231 | { | 231 | { |
| 232 | $start_date = $request->input('start_date', date('Y-m-d', strtotime('-1 month'))); | 232 | $start_date = $request->input('start_date', date('Y-m-d', strtotime('-1 month'))); |
| 233 | - $end_date = $request->input('end', date('Y-m-d')); | 233 | + $end_date = $request->input('end_date', date('Y-m-d')); |
| 234 | $result = ReInquiryForm::select(DB::raw('DATE(inquiry_date) as date'), DB::raw('COUNT(*) as count')) | 234 | $result = ReInquiryForm::select(DB::raw('DATE(inquiry_date) as date'), DB::raw('COUNT(*) as count')) |
| 235 | ->whereBetween('inquiry_date', [$start_date, date('Y-m-d', strtotime($end_date . ' +1 day'))]) | 235 | ->whereBetween('inquiry_date', [$start_date, date('Y-m-d', strtotime($end_date . ' +1 day'))]) |
| 236 | ->groupBy(DB::raw('DATE(inquiry_date)')) | 236 | ->groupBy(DB::raw('DATE(inquiry_date)')) |
| @@ -31,7 +31,7 @@ class KeywordController extends BaseController | @@ -31,7 +31,7 @@ class KeywordController extends BaseController | ||
| 31 | public function index(Keyword $keyword) | 31 | public function index(Keyword $keyword) |
| 32 | { | 32 | { |
| 33 | $this->map = $this->searchParam($this->map); | 33 | $this->map = $this->searchParam($this->map); |
| 34 | - $filed = ['id', 'project_id', 'title', 'seo_title', 'seo_keywords', 'seo_description', 'status', 'created_at','route','keyword_title']; | 34 | + $filed = ['id', 'project_id', 'title', 'seo_title', 'seo_keywords', 'seo_description', 'status', 'created_at','route','keyword_title','is_video_keyword']; |
| 35 | $data = $keyword->lists($this->map,$this->page,$this->row,$this->order,$filed); | 35 | $data = $keyword->lists($this->map,$this->page,$this->row,$this->order,$filed); |
| 36 | if(!empty($data)){ | 36 | if(!empty($data)){ |
| 37 | foreach ($data['list'] as &$v){ | 37 | foreach ($data['list'] as &$v){ |
-
请 注册 或 登录 后发表评论