tp框架识别不了https兼容处理

This commit is contained in:
devil_gong
2019-03-14 15:48:04 +08:00
parent 8064f66636
commit c0b9c68dff

View File

@ -225,7 +225,7 @@ function MyUrl($path, $params=[])
$url = str_replace('public/', '', $url);
}
// tpurl方法是否识别到https
// tp框架url方法是否识别到https
if(__MY_HTTP__ == 'https' && substr($url, 0, 5) != 'https')
{
$url = 'https'.mb_substr($url, 4, null, 'utf-8');