Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdz_gateway
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨苏杭
cdz_gateway
Commits
0d87ce20
Commit
0d87ce20
authored
May 20, 2018
by
BANice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件,数据库连接
parent
cd7304ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
.env
+5
-6
.idea/workspace.xml
+0
-0
Application/Events.php
+9
-1
vendor/workerman/_var_www_senthink_cdz_gateway_start.php.pid
+2
-2
vendor/workerman/workerman.log
+0
-0
No files found.
.env
View file @
0d87ce20
...
@@ -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_USE
R
=cdz
DB_NAME=cdzpay
DB_NAME=cdzpay
DB_HOST=127.0.0.1
DB_PASSWORD=senthink123
DB_PORT=6379
DB_PORT=3306
DB_PASSWORD=senthink123
DB_HOST=127.0.0.1
\ No newline at end of file
\ No newline at end of file
.idea/workspace.xml
View file @
0d87ce20
This diff is collapsed.
Click to expand it.
Application/Events.php
View file @
0d87ce20
...
@@ -47,7 +47,15 @@ class Events
...
@@ -47,7 +47,15 @@ class Events
static
::
$redis
->
select
(
4
);
static
::
$redis
->
select
(
4
);
static
::
$db
=
new
Connection
(
Env
::
get
(
'DB_HOST'
),
Env
::
get
(
'DB_PORT'
),
Env
::
get
(
'DB_USER'
),
Env
::
get
(
'DB_PASSWORD'
),
Env
::
get
(
'DB_NAME'
));
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'
));
}
catch
(
Exception
$exception
)
{
var_dump
(
$exception
->
getMessage
());
}
}
}
...
...
vendor/workerman/_var_www_senthink_cdz_gateway_start.php.pid
View file @
0d87ce20
13744
2510
\ No newline at end of file
\ No newline at end of file
vendor/workerman/workerman.log
View file @
0d87ce20
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment