作者 lyh
@@ -38,7 +38,7 @@ class Temp extends Command @@ -38,7 +38,7 @@ class Temp extends Command
38 if ($project) { 38 if ($project) {
39 $list = Product::get(); 39 $list = Product::get();
40 foreach ($list as $item) { 40 foreach ($list as $item) {
41 - $seo = json_decode($item->seo_mate, true); 41 + $seo = $item->seo_mate;
42 if ($seo) { 42 if ($seo) {
43 $seo['title'] = substr(strip_tags($seo['title']), 0, 70); 43 $seo['title'] = substr(strip_tags($seo['title']), 0, 70);
44 $seo['keyword'] = substr(strip_tags($seo['keyword']), 0, 255); 44 $seo['keyword'] = substr(strip_tags($seo['keyword']), 0, 255);
@@ -608,7 +608,6 @@ class ProductLogic extends BaseLogic @@ -608,7 +608,6 @@ class ProductLogic extends BaseLogic
608 $categoryLogic = new CategoryLogic(); 608 $categoryLogic = new CategoryLogic();
609 $category_id = $categoryLogic->importProductCategory($project_id, $data[2]); 609 $category_id = $categoryLogic->importProductCategory($project_id, $data[2]);
610 } 610 }
611 - echo 'category'.PHP_EOL;  
612 611
613 $keyword_id = ''; 612 $keyword_id = '';
614 if($data[3]??''){ 613 if($data[3]??''){
@@ -616,7 +615,6 @@ class ProductLogic extends BaseLogic @@ -616,7 +615,6 @@ class ProductLogic extends BaseLogic
616 $keywordLogic = new KeywordLogic(); 615 $keywordLogic = new KeywordLogic();
617 $keyword_id = $keywordLogic->importProductKeyword($project_id, $data[3]); 616 $keyword_id = $keywordLogic->importProductKeyword($project_id, $data[3]);
618 } 617 }
619 - echo 'keyword'.PHP_EOL;  
620 618
621 $gallery = []; 619 $gallery = [];
622 $thumb = ''; 620 $thumb = '';
@@ -641,7 +639,6 @@ class ProductLogic extends BaseLogic @@ -641,7 +639,6 @@ class ProductLogic extends BaseLogic
641 } 639 }
642 } 640 }
643 } 641 }
644 - echo 'thumb'.PHP_EOL;  
645 642
646 $intro = ''; 643 $intro = '';
647 if($data[5]??''){ 644 if($data[5]??''){
@@ -665,7 +662,6 @@ class ProductLogic extends BaseLogic @@ -665,7 +662,6 @@ class ProductLogic extends BaseLogic
665 662
666 $intro = $data[5]; 663 $intro = $data[5];
667 } 664 }
668 - echo 'intro'.PHP_EOL;  
669 665
670 $content = ''; 666 $content = '';
671 if($data[6]??''){ 667 if($data[6]??''){
@@ -689,7 +685,6 @@ class ProductLogic extends BaseLogic @@ -689,7 +685,6 @@ class ProductLogic extends BaseLogic
689 685
690 $content = $data[6]; 686 $content = $data[6];
691 } 687 }
692 - echo 'content'.PHP_EOL;  
693 688
694 //处理seo 689 //处理seo
695 $seo_title = ''; 690 $seo_title = '';
@@ -706,7 +701,6 @@ class ProductLogic extends BaseLogic @@ -706,7 +701,6 @@ class ProductLogic extends BaseLogic
706 if($data[10]??''){ 701 if($data[10]??''){
707 $seo_description = substr(strip_tags($data[10]),0,200); 702 $seo_description = substr(strip_tags($data[10]),0,200);
708 } 703 }
709 - echo 'seo'.PHP_EOL;  
710 704
711 $seo_mate = [ 705 $seo_mate = [
712 'title' => $seo_title, 706 'title' => $seo_title,
@@ -731,7 +725,6 @@ class ProductLogic extends BaseLogic @@ -731,7 +725,6 @@ class ProductLogic extends BaseLogic
731 } 725 }
732 } 726 }
733 } 727 }
734 - echo 'attr'.PHP_EOL;  
735 728
736 //处理描述切换栏 729 //处理描述切换栏
737 $describe = []; 730 $describe = [];
@@ -762,7 +755,6 @@ class ProductLogic extends BaseLogic @@ -762,7 +755,6 @@ class ProductLogic extends BaseLogic
762 break; 755 break;
763 } 756 }
764 } 757 }
765 - echo 'describe'.PHP_EOL;  
766 758
767 $id = $this->model->addReturnId( 759 $id = $this->model->addReturnId(
768 [ 760 [
@@ -781,7 +773,6 @@ class ProductLogic extends BaseLogic @@ -781,7 +773,6 @@ class ProductLogic extends BaseLogic
781 'status' => Product::STATUS_ON 773 'status' => Product::STATUS_ON
782 ] 774 ]
783 ); 775 );
784 - echo 'product'.PHP_EOL;  
785 776
786 //更新路由 777 //更新路由
787 if($route){ 778 if($route){