|
...
|
...
|
@@ -66,7 +66,7 @@ class UpdateRoute extends Command |
|
|
|
// $this->getBlog();
|
|
|
|
// $this->setCustomRoute($v['id']);
|
|
|
|
$this->editProductAlt();
|
|
|
|
$this->custom_to_blogs();
|
|
|
|
// $this->custom_to_blogs();
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
|
|
...
|
...
|
@@ -110,8 +110,10 @@ class UpdateRoute extends Command |
|
|
|
$productModel = new Product();
|
|
|
|
$lists = $productModel->list(['status'=>1],'id',['id','route','thumb','gallery']);
|
|
|
|
foreach ($lists as $k => $v){
|
|
|
|
$v['seo_mate']['title'] = '';
|
|
|
|
$productModel->edit(['seo_mate'=>json_encode($v['seo_mate'],true)],['id'=>$v['id']]);
|
|
|
|
$seo_mate = $v['seo_mate'];
|
|
|
|
$seo_mate['title'] = '';
|
|
|
|
echo date('Y-m-d H:i:s') . ':'.json_encode($seo_mate) . PHP_EOL;
|
|
|
|
$productModel->edit(['seo_mate'=>json_encode($seo_mate,true)],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
...
|
...
|
|