Authored by hf

modify to add guang detail page title description

@@ -182,11 +182,13 @@ class InfoController extends AbstractAction @@ -182,11 +182,13 @@ class InfoController extends AbstractAction
182 } else { 182 } else {
183 $data['shareImg'] = Helpers::getImageUrl($detail['getArticle']['cover_image'], 640, 320); 183 $data['shareImg'] = Helpers::getImageUrl($detail['getArticle']['cover_image'], 640, 320);
184 } 184 }
  185 + $this->setTitle($detail['getArticle']['article_title']);
  186 + $this->setDescription($detail['getArticle']['article_summary']);
185 } 187 }
186 188
187 // 标识有微信分享 189 // 标识有微信分享
188 $data['hasWxShare'] = true; 190 $data['hasWxShare'] = true;
189 - 191 +
190 $this->_view->display('index', $data); 192 $this->_view->display('index', $data);
191 193
192 $detail = array(); 194 $detail = array();
@@ -180,6 +180,9 @@ class PlusstarController extends AbstractAction @@ -180,6 +180,9 @@ class PlusstarController extends AbstractAction
180 $data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 120) ? trim(strip_tags(mb_substr($data['ps']['intro'], 0, 120, 'utf-8'))) . '...' : $data['ps']['intro']; 180 $data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 120) ? trim(strip_tags(mb_substr($data['ps']['intro'], 0, 120, 'utf-8'))) . '...' : $data['ps']['intro'];
181 $data['shareImg'] = $data['ps']['logo']; 181 $data['shareImg'] = $data['ps']['logo'];
182 182
  183 + $this->setTitle($data['shareTitle']);
  184 + $this->setDescription($data['shareDesc']);
  185 +
183 $brandInfo = array(); 186 $brandInfo = array();
184 187
185 } while (false); 188 } while (false);