|
@@ -1,4 +1,5 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Created by PhpStorm.
|
|
* Created by PhpStorm.
|
|
|
* User: Administrator
|
|
* User: Administrator
|
|
@@ -66,7 +67,7 @@ class Mlogic
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$conf = require(self::$configPath . 'database.php');
|
|
$conf = require(self::$configPath . 'database.php');
|
|
|
- self::$db = new \Workerman\MySQL\Connection($conf['hostname'], $conf['hostport'], $conf['username'], $conf['password'], $conf['database'], $conf['charset']);
|
|
|
|
|
|
|
+ self::$db = @new \Workerman\MySQL\Connection($conf['hostname'], $conf['hostport'], $conf['username'], $conf['password'], $conf['database'], $conf['charset']);
|
|
|
|
|
|
|
|
|
|
|
|
|
return self::$db;
|
|
return self::$db;
|
|
@@ -132,6 +133,4 @@ class Mlogic
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|