This commit is contained in:
Chenx221 2024-05-25 01:38:51 +08:00
parent a4e43936a5
commit 9b8f02006a
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -177,7 +177,7 @@ class SiteConfig extends Model
}, array_keys($env), $env);
file_put_contents(Yii::getAlias('@app/.env.pending'), implode("\n", $data));
parse_ini_file(Yii::getAlias('@app/.env.pending'));
$result= file_put_contents(Yii::getAlias('@app/.env.pending'), implode("\n", $data)) == false;
$result= file_put_contents(Yii::getAlias('@app/.env'), implode("\n", $data)) == false;
unlink(Yii::getAlias('@app/.env.pending'));
return !($result);
} catch (Exception $e) {