作者 lyh

gx

... ... @@ -44,15 +44,13 @@ 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']);
$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){
if(!empty($v['seo_mate'])){
$seo_arr = $v['seo_mate'];
//更新seo_title
if(!isset($seo_arr['title'])){
var_dump(11111);
die();
//生成seo_title
$seo_arr['title'] = $this->ai_send('product_seo_title',$v['title']);
... ...