作者 赵彬吉
@@ -49,7 +49,7 @@ class OptimizeController extends BaseController @@ -49,7 +49,7 @@ class OptimizeController extends BaseController
49 if(!empty($lists) && !empty($lists['list'])){ 49 if(!empty($lists) && !empty($lists['list'])){
50 $rankDataModel = new RankData(); 50 $rankDataModel = new RankData();
51 foreach ($lists['list'] as $k => $v){ 51 foreach ($lists['list'] as $k => $v){
52 - $data = $rankDataModel->read(['project_id'=>$v['id'],'lang'=>'','updated_date'=>date('Y-m-d')],['first_page_num','indexed_pages_num']); 52 + $data = $rankDataModel->read(['project_id'=>$v['id'],'lang'=>''],['first_page_num','indexed_pages_num']);
53 $v['first_page_num'] = $data['first_page_num'] ?? 0; 53 $v['first_page_num'] = $data['first_page_num'] ?? 0;
54 $v['indexed_pages_num'] = $data['indexed_pages_num'] ?? 0; 54 $v['indexed_pages_num'] = $data['indexed_pages_num'] ?? 0;
55 $v['g'] = $this->getGNum($v['id']); 55 $v['g'] = $this->getGNum($v['id']);
@@ -696,9 +696,7 @@ class ProductLogic extends BaseLogic @@ -696,9 +696,7 @@ class ProductLogic extends BaseLogic
696 }else{ 696 }else{
697 $product = $this->model->read(['title' => $data[0]]); 697 $product = $this->model->read(['title' => $data[0]]);
698 } 698 }
699 -  
700 if (!$product) { 699 if (!$product) {
701 -  
702 $category_id = ''; 700 $category_id = '';
703 $category_arr = []; 701 $category_arr = [];
704 if ($data[2]??'') { 702 if ($data[2]??'') {
@@ -817,9 +815,9 @@ class ProductLogic extends BaseLogic @@ -817,9 +815,9 @@ class ProductLogic extends BaseLogic
817 $seo_description = substr(strip_tags($data[10]),0,200); 815 $seo_description = substr(strip_tags($data[10]),0,200);
818 } 816 }
819 $seo_mate = [ 817 $seo_mate = [
820 - 'title' => $seo_title,  
821 - 'keyword' => $seo_keywords,  
822 - 'description' => $seo_description 818 + 'title' => $seo_title ?? '',
  819 + 'keyword' => $seo_keywords ?? '',
  820 + 'description' => $seo_description ?? ''
823 ]; 821 ];
824 //处理参数 822 //处理参数
825 $attrs = []; 823 $attrs = [];
@@ -877,7 +875,7 @@ class ProductLogic extends BaseLogic @@ -877,7 +875,7 @@ class ProductLogic extends BaseLogic
877 'intro' => $intro, 875 'intro' => $intro,
878 'content' => $content, 876 'content' => $content,
879 'describe' => Arr::a2s($describe), 877 'describe' => Arr::a2s($describe),
880 - 'seo_mate' => Arr::a2s($seo_mate), 878 +// 'seo_mate' => Arr::a2s($seo_mate ?? []),
881 'created_uid' => $user_id, 879 'created_uid' => $user_id,
882 'status' => Product::STATUS_ON 880 'status' => Product::STATUS_ON
883 ] 881 ]