* Fix bugs

This commit is contained in:
zenggang
2023-08-07 06:53:59 +00:00
parent c9acba74a7
commit d7b4cfbe18
11 changed files with 239 additions and 29 deletions
+16 -5
View File
@@ -334,12 +334,23 @@ class installModel extends model
public function setDBParam()
{
$this->config->db->driver = $this->post->dbDriver;
$this->config->db->host = $this->post->dbHost;
if($this->config->inQuickon)
{
$this->config->db->host = getenv('ZT_MYSQL_HOST');
$this->config->db->user = getenv('ZT_MYSQL_USER');
$this->config->db->encoding = 'UTF8';
$this->config->db->password = getenv('ZT_MYSQL_PASSWORD');
$this->config->db->port = getenv('ZT_MYSQL_PORT');
}
else
{
$this->config->db->host = $this->post->dbHost;
$this->config->db->user = $this->post->dbUser;
$this->config->db->encoding = $this->post->dbEncoding;
$this->config->db->password = $this->post->dbPassword;
$this->config->db->port = $this->post->dbPort;
}
$this->config->db->name = $this->post->dbName;
$this->config->db->user = $this->post->dbUser;
$this->config->db->encoding = $this->post->dbEncoding;
$this->config->db->password = $this->post->dbPassword;
$this->config->db->port = $this->post->dbPort;
$this->config->db->prefix = $this->post->dbPrefix;
}