作者 lyh

gx

... ... @@ -46,7 +46,7 @@ class UpdateController extends BaseController
$productModel = new Product();
$list = $productModel->list(['status'=>Product::STATUS_ON,'project_id'=>$this->user['project_id']],'id',['id','seo_mate','title']);
if(!empty($list)){
foreach ($list as $k => $v){
foreach ($list as $v){
if(!empty($v['seo_mate'])){
$seo_arr = $v['seo_mate'];
//更新seo_title
... ... @@ -82,8 +82,16 @@ class UpdateController extends BaseController
$list = $newsModel->list(['status'=>$newsModel::STATUS_ONE]);
if(!empty($list)){
foreach ($list as $k => $v){
if(!empty($v['seo_title'])){
}
if(!empty($v['seo_keywords'])){
}
if(!empty($v['seo_description'])){
}
}
}
}
... ...
... ... @@ -33,7 +33,7 @@ class ProductController extends BaseController
$this->map['title'] = ['like','%'.$this->map['title'].'%'];
}
$this->map['project_id'] = $this->user['project_id'];
$filed = ['id', 'project_id', 'title', 'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'];
$filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'];
$lists = $product->lists($this->map,$this->page,$this->row,$this->order,$filed);
if(!empty($lists['list'])){
foreach ($lists['list'] as $k=>$v){
... ...