modified 优化数据迁移

This commit is contained in:
zhaoxiang 2020-02-20 15:54:43 +08:00
parent d38a601535
commit 69096a24c2

View File

@ -45,6 +45,6 @@ class IniAdminUser extends Migrator {
$this->table('admin_user')->insert($data)->saveData();
$lockFile = Env::get('app_path') . 'install' . DIRECTORY_SEPARATOR . 'lock.ini';
file_put_contents($lockFile, "username:root, password:{$pass}");
file_put_contents($lockFile, "username:root, password:{$pass}" . PHP_EOL);
}
}