From 5cfada515d8e1516f10cf760fb3098fef2eca5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 6 Feb 2025 10:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E4=BA=86//data.chinahighlihgts.com=E8=BF=99=E7=A7=8D?= =?UTF-8?q?=E4=BB=A5=E5=89=8D=E5=85=BC=E5=AE=B9http=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87url.=E5=A6=82=E6=9E=9C=E6=9C=89=EF=BC=8C=E5=B0=B1?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E6=94=B9=E5=8F=98=E5=9B=BE=E7=89=87?= =?UTF-8?q?url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 6 +++++- .../third_party/updatetrain/controllers/updatestation.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index cb205d6f..335ea5f8 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1108,7 +1108,11 @@ class Information extends CI_Controller // 检查图片地址格式 $parsed_photo_url = parse_url($parsed_photo); - if ( + if (strpos($parsed_photo,"data.chinahighlights.com")!==false ){ + //判断是否录入了//data.chinahighlihgts.com这种以前兼容http的图片url + //如果有,就不需要改变图片url + } + else if ( (!isset($parsed_photo_url['host']) || !isset($parsed_photo_url['scheme'])) && isset($parsed_photo_url['path']) ) { $parsed_photo = 'https://images.chinahighlights.com' . $parsed_photo_url['path']; diff --git a/application/third_party/updatetrain/controllers/updatestation.php b/application/third_party/updatetrain/controllers/updatestation.php index ac5279e0..fc5dd643 100644 --- a/application/third_party/updatetrain/controllers/updatestation.php +++ b/application/third_party/updatetrain/controllers/updatestation.php @@ -8,6 +8,7 @@ * @FilePath: \information-system\application\third_party\updatetrain\controllers\updatestation.php * 本地运行地址:http://202.103.68.144:65008/info.php/thirdparty/updatetrain/updatestation/ * 前台的接口也需要更新一次:https://cht.mycht.cn/info.php/apps/trainsystem/innerTrainSearch/getallstation + * 汉特火车接口(国内)也要更新:https://gh.mycht.cn/info.php/apps/trainsystem/innerTrainSearch/getallstation */