diff --git a/app/common.php b/app/common.php index 1a057ac..efa1bbd 100644 --- a/app/common.php +++ b/app/common.php @@ -1301,6 +1301,10 @@ if (!function_exists('deal_image_url')) { $tmpUrl = substr($tmpUrl, $pos); } } + // 严格判断开头是不是 '/' + if (strpos($tmpUrl, '/') !== 0) { + $tmpUrl = '/' . $tmpUrl; + } return $tmpUrl; } } diff --git a/public/themes/website/1/zh/demo/product.html b/public/themes/website/1/zh/demo/product.html index 7c7cb09..5470113 100644 --- a/public/themes/website/1/zh/demo/product.html +++ b/public/themes/website/1/zh/demo/product.html @@ -158,7 +158,7 @@ 查看选型表