Commit 0d87ce20 by BANice

修改配置文件,数据库连接

parent cd7304ae
...@@ -5,12 +5,11 @@ GATEWAY_COUNT=1 ...@@ -5,12 +5,11 @@ GATEWAY_COUNT=1
GATEWAY_NAME=cdz GATEWAY_NAME=cdz
REGISTER_PORT=1239 REGISTER_PORT=1239
REGISTER_IP=127.0.0.1 REGISTER_IP=127.0.0.1
#REGISTER_IP=cdzregister.default.svc.cluster.local
REDIS_HOST=127.0.0.1 REDIS_HOST=127.0.0.1
REDIS_PORT=6379 REDIS_PORT=6379
START_FILES=start_businessworker START_FILES=start_businessworker
DB_USE=cdz DB_USER=cdz
DB_NAME=cdzpay DB_NAME=cdzpay
DB_HOST=127.0.0.1
DB_PORT=6379
DB_PASSWORD=senthink123 DB_PASSWORD=senthink123
DB_PORT=3306
DB_HOST=127.0.0.1
\ No newline at end of file
...@@ -47,8 +47,16 @@ class Events ...@@ -47,8 +47,16 @@ class Events
static::$redis->select(4); static::$redis->select(4);
try{
static::$db = new Connection(Env::get('DB_HOST'), Env::get('DB_PORT'), Env::get('DB_USER'), Env::get('DB_PASSWORD'), Env::get('DB_NAME')); static::$db = new Connection(Env::get('DB_HOST'), Env::get('DB_PORT'), Env::get('DB_USER'), Env::get('DB_PASSWORD'), Env::get('DB_NAME'));
}catch (Exception $exception)
{
var_dump($exception->getMessage());
}
} }
......
13744 2510
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment