diff --git a/app/Services/Cron/FreenodeMerge.php b/app/Services/Cron/FreenodeMerge.php index f5434b78..5f8bf6bf 100644 --- a/app/Services/Cron/FreenodeMerge.php +++ b/app/Services/Cron/FreenodeMerge.php @@ -211,7 +211,7 @@ final class FreenodeMerge $sFilePath = $sFileDir."/".$sDate.".txt"; // 都是txt,解析的时候另处理 file_put_contents($sFilePath, $sMerge); - @chmod($filename, 0777); + @chmod($sFilePath, 0777); echo " - base::".$sFilePath." 已保存 \n"; } @@ -312,7 +312,7 @@ final class FreenodeMerge file_put_contents($sFileSavePath, $sFeedContent); - @chmod($filename, 0777); + @chmod($sFileSavePath, 0777); echo " - fn的".$aSiteMapRow["code"]."的{$sClient}的{$sDate} 保存成功 \n"; }