作者 lyh

gx

@@ -44,15 +44,13 @@ class UpdateController extends BaseController @@ -44,15 +44,13 @@ class UpdateController extends BaseController
44 */ 44 */
45 public function updateProduct(){ 45 public function updateProduct(){
46 $productModel = new Product(); 46 $productModel = new Product();
47 - $list = $productModel->list(['status'=>Product::STATUS_ON,'project_id'=>$this->user['project_id']],'id',['id','seo_mate']); 47 + $list = $productModel->list(['status'=>Product::STATUS_ON,'project_id'=>$this->user['project_id']],'id',['id','seo_mate','title']);
48 if(!empty($list)){ 48 if(!empty($list)){
49 foreach ($list as $k => $v){ 49 foreach ($list as $k => $v){
50 if(!empty($v['seo_mate'])){ 50 if(!empty($v['seo_mate'])){
51 $seo_arr = $v['seo_mate']; 51 $seo_arr = $v['seo_mate'];
52 //更新seo_title 52 //更新seo_title
53 if(!isset($seo_arr['title'])){ 53 if(!isset($seo_arr['title'])){
54 - var_dump(11111);  
55 - die();  
56 //生成seo_title 54 //生成seo_title
57 $seo_arr['title'] = $this->ai_send('product_seo_title',$v['title']); 55 $seo_arr['title'] = $this->ai_send('product_seo_title',$v['title']);
58 56