diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 9667e3d3..f77665cc 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -97,6 +97,42 @@ class Info_amp extends CI_Controller )); 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'); $status = $this->InfoMetas_model->get($icid, 'AMP_STATUS'); $schema = $this->InfoMetas_model->get($icid, 'AMP_SCHEMA'); @@ -104,6 +140,7 @@ class Info_amp extends CI_Controller echo json_encode(array( "succ" => true, "icid" => $icid, + "icurl" => $site.$ic->ic_url, "json" => $json, "schema" => $schema, "status" => $status