From 27ec2c276a5664b1c22e4b9b2a8990365cd5936d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 29 Mar 2022 18:42:54 +0800 Subject: [PATCH] no message --- app/Http/Controllers/IndexController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 = <<