no message

This commit is contained in:
kuaifan 2022-03-29 19:16:27 +08:00
parent 27ec2c276a
commit e39335864d

View File

@ -101,9 +101,10 @@ class IndexController extends InvokeController
]); ]);
if (Base::isSuccess($res)) { if (Base::isSuccess($res)) {
if (in_array($res['data']['name'], ['latest.yml', 'latest-mac.yml']) && $body) { if (in_array($res['data']['name'], ['latest.yml', 'latest-mac.yml']) && $body) {
$content = str_replace("\n", "\n ", $body);
$content = <<<EOF $content = <<<EOF
releaseNotes: |- releaseNotes: |-
$body $content
EOF; EOF;
file_put_contents($res['data']['file'], $content, FILE_APPEND); file_put_contents($res['data']['file'], $content, FILE_APPEND);
} }