Commit 01d63881 authored by liuyuzhen's avatar liuyuzhen

图片

parent 5b3f0220
...@@ -160,15 +160,9 @@ class ImageUtil { ...@@ -160,15 +160,9 @@ class ImageUtil {
} }
public static function getCategoryHeadPic($gcId){ public static function getCategoryHeadPic($gcId){
$basePath=\Bootstrap::getUrlIniConfig('source');
$commonPath=ImageConst::defaultPath; $commonPath=ImageConst::defaultPath;
$fileName= ImageConst::categoryHeadPicPrefix.$gcId.\Our\NameConst::jpgSuffix; $fileName= ImageConst::categoryHeadPicPrefix.$gcId.\Our\NameConst::jpgSuffix;
$file=$basePath.$commonPath.$fileName; return \Our\Common::getStaticFile($fileName,$commonPath);
if(file_exists($file)){
return \Our\Common::getStaticFile($fileName,$commonPath);
}else{
return \Our\Common::getStaticFile(ImageConst::defaultCategoryImgName,$commonPath);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment