diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index 8f849fe30..84c5af327 100755 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -99,9 +99,13 @@ class IndexController extends InvokeController "path" => $genericPath, "fileName" => true ]); - if ($res) { - if ($body) { - file_put_contents(public_path($genericPath . "change.md"), $body); + if (Base::isSuccess($res)) { + if (in_array($res['data']['name'], ['latest.yml', 'latest-mac.yml']) && $body) { + $content = <<