diff --git a/app/Services/Article/Schema.php b/app/Services/Article/Schema.php index a682351e..105903e3 100755 --- a/app/Services/Article/Schema.php +++ b/app/Services/Article/Schema.php @@ -168,6 +168,7 @@ final class Schema $sFullSavePath = $sUploadDir . $sTmp; $sFullSavePathUrl = $sUploadPath . $sTmp; $oImgMain->save($sFullSavePath); + chmod($sFullSavePath, 0777); $aSavedPath['full'] = $sFullSavePathUrl; // --- 3. 局部裁剪与归档:[后缀 => 距离底部的偏移] --- @@ -199,6 +200,8 @@ final class Schema ->scale(height: $iTargetHeight) ->save($sCurrentPath); + chmod($sCurrentPath, 0777); + // 路径入库 $aSavedPath[$sSuffix] = $sCurrentPathUrl;