判断是不是http请求和使用config下的地址设置
$http = $_SERVER['SERVER_PROTOCOL'] == 'on' ? 'HTTPS' : 'HTTP';
$iconPath = $http.'://'.$_SERVER['HTTP_HOST'].config('template.tpl_replace_string.__PUBLIC__').'/admin'.'/weathericon/W'.$weathers['icon'].'.png';
判断是不是http请求和使用config下的地址设置
$http = $_SERVER['SERVER_PROTOCOL'] == 'on' ? 'HTTPS' : 'HTTP';
$iconPath = $http.'://'.$_SERVER['HTTP_HOST'].config('template.tpl_replace_string.__PUBLIC__').'/admin'.'/weathericon/W'.$weathers['icon'].'.png';