shenshihai 2 年之前
父節點
當前提交
52c98d6a7b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Utility.php

+ 1 - 1
src/Utility.php

@@ -149,7 +149,7 @@ function replaceMacro(string $filePath,string $targetPath,array $macros){
 	foreach($macros as $key=>$value){
 		$content = str_replace($content,$key,$value);
 	}
-	file_put_contents($targetPath,$content);
+	return file_put_contents($targetPath,$content);
 }
 
 //枚举子目录