* [bug#54866,done,1h] File path uses actual path.

This commit is contained in:
hufangzhou
2024-09-06 09:48:31 +08:00
committed by 王于听
parent 565138e56c
commit 2567d16674
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ class mailModel extends model
{
$wwwRoot = $this->app->getWwwRoot();
$images = array_filter(array_unique($images));
foreach($images as $image) $this->mta->AddEmbeddedImage($wwwRoot . $image, basename($image));
foreach($images as $image) $this->mta->AddEmbeddedImage($image, basename($image));
}
/**
+1 -1
View File
@@ -112,7 +112,7 @@ class mailTao extends mailModel
if(!$file) continue;
if(!in_array($file->extension, $this->config->file->imageExtensions)) continue;
$images[$matches[1][$key]] = $file->webPath;
$images[$matches[1][$key]] = $file->realPath;
}
return $images;
}