no message

This commit is contained in:
kuaifan 2022-03-29 18:42:54 +08:00
parent b2f8da500b
commit 27ec2c276a

View File

@ -99,9 +99,13 @@ class IndexController extends InvokeController
"path" => $genericPath, "path" => $genericPath,
"fileName" => true "fileName" => true
]); ]);
if ($res) { if (Base::isSuccess($res)) {
if ($body) { if (in_array($res['data']['name'], ['latest.yml', 'latest-mac.yml']) && $body) {
file_put_contents(public_path($genericPath . "change.md"), $body); $content = <<<EOF
releaseNotes: |-
$body
EOF;
file_put_contents($res['data']['file'], $content, FILE_APPEND);
} }
file_put_contents($latestFile, $genericVersion); file_put_contents($latestFile, $genericVersion);
} }