mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
图片匹配域名方法优化
This commit is contained in:
parent
4a50df36d4
commit
8adf067232
@ -682,10 +682,10 @@ if (!function_exists('get_file_link')) {
|
||||
if (!$link) {
|
||||
return '';
|
||||
}
|
||||
if (strstr('http', $link) === false) {
|
||||
return app()->request->domain() . $link;
|
||||
} else {
|
||||
if (substr($link, 0, 4) === "http" || substr($link, 0, 2) === "//") {
|
||||
return $link;
|
||||
} else {
|
||||
return app()->request->domain() . $link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user