|
|
@ -1014,7 +1014,11 @@ class Information extends CI_Controller
|
|
|
|
//社媒分享图片
|
|
|
|
//社媒分享图片
|
|
|
|
$data["OGIMAGE"] = "";
|
|
|
|
$data["OGIMAGE"] = "";
|
|
|
|
if (!empty($information->ic_photo)) {
|
|
|
|
if (!empty($information->ic_photo)) {
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $information->ic_photo;
|
|
|
|
if (strpos($information->ic_photo,"chinatravel.com")!=false){
|
|
|
|
|
|
|
|
$full_ic_photo = $information->ic_photo;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $information->ic_photo;
|
|
|
|
|
|
|
|
}
|
|
|
|
$data["OGIMAGE"] = '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
$data["OGIMAGE"] = '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|