Просмотр исходного кода

Wesmiler 校企小程序 更新

wesmiler 3 лет назад
Родитель
Сommit
7eddd00e2c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/api/common.php

+ 1 - 1
app/api/common.php

@@ -41,7 +41,7 @@ if (!function_exists('getPreview')) {
             $uploadPath = (isset($fileConfig['public']) && $fileConfig['public']['url'])? $fileConfig['public']['url']:'/uploads';
             $url = preg_match("/^(https|http):\/\//", trim($url,'//')) ? $url : 'https://'.$host . $uploadPath .'/' . ltrim($url, '/');
         }
-        $url = $url? preg_replace("/^(https|http):\/\//", '//', $url) : '';
+//        $url = $url? preg_replace("/^(http):\/\//", '//', $url) : '';
         if(preg_match("/127.0|localhost/", $host) && $url){
             $url = preg_replace("/^\/\//", 'http://', $url);
         }