no message

deploy
DESKTOP-4RNDQIC\29019 2021-03-01 21:53:40 +08:00
parent 536895457b
commit 172be1414f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ abstract class Model
$option=array(); $option=array();
$timeout=time() + 20; $timeout=time() + 20;
if ($db === null) { if ($db === null) {
$dsn = 'mysql:host=' . Config::DB_HOST . ';dbname=' . Config::DB_NAME . ';charset=utf8'; $dsn = 'mysql:host=' . Config::DBUrl() . ';dbname=' . Config::DB_NAME . ';charset=utf8';
try { try {
$db = new PDO($dsn, Config::DB_USER, Config::DB_PASSWORD, $ssl); $db = new PDO($dsn, Config::DB_USER, Config::DB_PASSWORD, $ssl);
//$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);