|
...
|
...
|
@@ -45,12 +45,10 @@ class UpdateController extends BaseController |
|
|
|
public function updateProduct(){
|
|
|
|
$productModel = new Product();
|
|
|
|
$list = $productModel->list(['status'=>Product::STATUS_ON,'project_id'=>$this->user['project_id']],'id',['id','seo_mate']);
|
|
|
|
var_dump($list);
|
|
|
|
die();
|
|
|
|
if(!empty($list)){
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
if(!empty($v['seo_mate'])){
|
|
|
|
$seo_arr = json_decode($v['seo_mate']);
|
|
|
|
$seo_arr = $v['seo_mate'];
|
|
|
|
//更新seo_title
|
|
|
|
if(!isset($seo_arr['title'])){
|
|
|
|
//生成seo_title
|
...
|
...
|
|