|
...
|
...
|
@@ -1468,7 +1468,8 @@ function diffInHours($startTime, $endTime) |
|
|
|
return round($hours, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
if (!function_exists('thumbImageByUrl')) {
|
|
|
|
/**
|
|
|
|
* 通过图片地址压缩图片
|
|
|
|
* @param $url
|
|
|
|
* @param int $width
|
|
...
|
...
|
@@ -1476,8 +1477,8 @@ function diffInHours($startTime, $endTime) |
|
|
|
* @author Akun
|
|
|
|
* @date 2025/09/01 15:18
|
|
|
|
*/
|
|
|
|
function thumbImageByUrl($url, $width = 360)
|
|
|
|
{
|
|
|
|
function thumbImageByUrl($url, $width = 360)
|
|
|
|
{
|
|
|
|
if (empty($url)) {
|
|
|
|
return $url;
|
|
|
|
}
|
|
...
|
...
|
@@ -1526,6 +1527,7 @@ function thumbImageByUrl($url, $width = 360) |
|
|
|
}
|
|
|
|
|
|
|
|
return $url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!function_exists('checkRemoteFileExists')) {
|
...
|
...
|
|