作者 lyh

gx

@@ -574,7 +574,7 @@ class ProductController extends BaseController @@ -574,7 +574,7 @@ class ProductController extends BaseController
574 $contents .= $pre_suf_array['prefix_title'][0].' '.implode(', ',$tm_ky).', '.$pre_suf_array['suffix_l'][0]."\r\n"; 574 $contents .= $pre_suf_array['prefix_title'][0].' '.implode(', ',$tm_ky).', '.$pre_suf_array['suffix_l'][0]."\r\n";
575 $new_content = htmlentities($contents); 575 $new_content = htmlentities($contents);
576 } 576 }
577 - if (FALSE == empty($data['new_content'])){ 577 + if (!empty($new_content)){
578 $productInfo['describe'] = $new_content . $productInfo['$data']; 578 $productInfo['describe'] = $new_content . $productInfo['$data'];
579 } 579 }
580 $this->response('success',Code::SUCCESS,$productInfo); 580 $this->response('success',Code::SUCCESS,$productInfo);