修改图片路径
This commit is contained in:
parent
c7ab75341e
commit
6c6b3af210
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user