hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent 1b1084f887
commit e7d5f56571

@ -97,6 +97,42 @@ class Info_amp extends CI_Controller
)); ));
return false; return false;
} }
//信息~
$ic = $this->InfoContents_model->get_ic_contents2($icid);
if (empty($ic)) {
echo json_encode(array(
"succ" => false,
"message" => "load_amp() -> 无信息"
));
return false;
}
switch (strtolower($ic->ic_site_code)) {
case 'vac':
$site = 'https://www.viaje-a-china.com';
break;
case 'vc':
$site = 'https://www.voyageschine.com';
break;
case 'jp':
$site = 'https://www.arachina.com';
break;
case 'ru':
$site = 'https://www.chinahighlights.ru';
break;
case 'it':
$site = 'https://www.viaggio-in-cina.it';
break;
case 'cht':
$site = 'https://www.chinahighlights.com';
break;
case 'gm':
$site = 'https://www.chinarundreisen.com/';
break;
default:
$site = '';
break;
}
$json = $this->InfoMetas_model->get($icid, 'AMP_JSON'); $json = $this->InfoMetas_model->get($icid, 'AMP_JSON');
$status = $this->InfoMetas_model->get($icid, 'AMP_STATUS'); $status = $this->InfoMetas_model->get($icid, 'AMP_STATUS');
$schema = $this->InfoMetas_model->get($icid, 'AMP_SCHEMA'); $schema = $this->InfoMetas_model->get($icid, 'AMP_SCHEMA');
@ -104,6 +140,7 @@ class Info_amp extends CI_Controller
echo json_encode(array( echo json_encode(array(
"succ" => true, "succ" => true,
"icid" => $icid, "icid" => $icid,
"icurl" => $site.$ic->ic_url,
"json" => $json, "json" => $json,
"schema" => $schema, "schema" => $schema,
"status" => $status "status" => $status

Loading…
Cancel
Save