Commit bf16aadc authored by wwccw0591's avatar wwccw0591

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw

parents 6f599cbf 61603e65
......@@ -188,7 +188,7 @@ class Common
break;
default:
foreach ($files as $f) {
$output = $staticUrl . '/' .$directory . $f;
$output = $staticUrl . '/' .$directory . $f.\Our\NameConst::jpgSuffix;
}
break;
}
......
......@@ -100,6 +100,10 @@ class ImageUtil {
if (is_null($ossClient)) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::ossServerSetError);
}
if(strpos($uploadImageName,\Our\NameConst::dot)===false){
$uploadImageName = $uploadImageName.\Our\NameConst::jpgSuffix;
}
$ossUploadFilePath = $path.$uploadImageName;
//return $ossUploadFilePath;
$return = $ossClient->uploadFile($bucketName, $ossUploadFilePath, $filePath);
......
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