修改图片路径

This commit is contained in:
baji 2025-03-09 22:43:15 +08:00
parent c7ab75341e
commit 6c6b3af210

View File

@ -89,9 +89,11 @@ if (!function_exists('imageUrl')) {
$pre = request()->domain();
if (strpos($url, 'http') !== false) {
$path = $url;
} else if (strpos($pre, '192.168') !== false) {#测试环境
$path = $pre . "ceshi/public/" . $url;
} else if ($url === '0') {
}
// else if (strpos($pre, '192.168') !== false) {#测试环境
// $path = $pre . "ceshi/public/" . $url;
// }
else if ($url === '0') {
$path = $pre;
} else {
$path = $pre . $url;