|
...
|
...
|
@@ -80,8 +80,7 @@ class UpdateSeoTdk extends Command |
|
|
|
if(!empty($list)){
|
|
|
|
foreach ($list as $v){
|
|
|
|
$v = (array)$v;
|
|
|
|
if(!empty($v['seo_mate'])){
|
|
|
|
$seo_arr = json_decode($v['seo_mate'], true);
|
|
|
|
$seo_arr = json_decode($v['seo_mate'], true) ?: [];
|
|
|
|
//更新seo_title
|
|
|
|
if(!isset($seo_arr['title'])){
|
|
|
|
//生成seo_title
|
|
...
|
...
|
@@ -99,7 +98,6 @@ class UpdateSeoTdk extends Command |
|
|
|
DB::connection('custom_mysql')->table('gl_product')->where(['id'=>$v['id']])->update(['seo_mate'=>$ser_str]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|