判断是否录入了//data.chinahighlihgts.com这种以前兼容http的图片url.如果有,就不需要改变图片url

master
赵鹏 1 year ago
parent b2d90df46b
commit 5cfada515d

@ -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'];

@ -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
*/

Loading…
Cancel
Save