Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-userCenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-userCenter
Commits
4d1ea0c3
Commit
4d1ea0c3
authored
Oct 23, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into test
parents
7617c9a0
0e0f1978
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
debug.ini
debug.ini
+10
-10
local.ini
local.ini
+10
-10
main.go
main.go
+1
-1
No files found.
debug.ini
View file @
4d1ea0c3
[DATABASE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
roo
t
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_HOST
=
hk-cynosdbmysql-grp-a3wqck8p.sql.tencentcdb.com:22303
MYSQL_USERNAME
=
hilo_tes
t
MYSQL_PASSWORD
=
cPsTMSA9szQ6B9Y2zFXSvpDdduB8kZxC
MYSQL_DB
=
hilo
[DATABASECODE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
roo
t
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_HOST
=
hk-cynosdbmysql-grp-a3wqck8p.sql.tencentcdb.com:22303
MYSQL_USERNAME
=
hilo_tes
t
MYSQL_PASSWORD
=
cPsTMSA9szQ6B9Y2zFXSvpDdduB8kZxC
MYSQL_DB
=
hilo_code
[REDIS]
REDIS_HOST
=
47.244.34.27
:6379
REDIS_PASSWORD
=
8QZ9JD1zLvPR3yHf
REDIS_CLUSTER_HOST
=
47.244.34.27
:6379
REDIS_CLUSTER_PASSWORD
=
8QZ9JD1zLvPR3yHf
REDIS_HOST
=
172.19.0.2
:6379
REDIS_PASSWORD
=
yPyZH1DYMJhrVQgr
REDIS_CLUSTER_HOST
=
172.19.0.2
:6379
REDIS_CLUSTER_PASSWORD
=
yPyZH1DYMJhrVQgr
[JWT]
SECRET
=
hilo1632
ISSUER_API
=
hiloApi
...
...
local.ini
View file @
4d1ea0c3
[DATABASE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
roo
t
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_HOST
=
hk-cynosdbmysql-grp-a3wqck8p.sql.tencentcdb.com:22303
MYSQL_USERNAME
=
hilo_tes
t
MYSQL_PASSWORD
=
cPsTMSA9szQ6B9Y2zFXSvpDdduB8kZxC
MYSQL_DB
=
hilo
[DATABASECODE]
MYSQL_HOST
=
47.244.34.27:3306
MYSQL_USERNAME
=
roo
t
MYSQL_PASSWORD
=
yX0jPAhO0I4s2zlA
MYSQL_HOST
=
hk-cynosdbmysql-grp-a3wqck8p.sql.tencentcdb.com:22303
MYSQL_USERNAME
=
hilo_tes
t
MYSQL_PASSWORD
=
cPsTMSA9szQ6B9Y2zFXSvpDdduB8kZxC
MYSQL_DB
=
hilo_code
[REDIS]
REDIS_HOST
=
47.244.34.27
:6379
REDIS_PASSWORD
=
8QZ9JD1zLvPR3yHf
REDIS_CLUSTER_HOST
=
47.244.34.27
:6379
REDIS_CLUSTER_PASSWORD
=
8QZ9JD1zLvPR3yHf
REDIS_HOST
=
172.19.0.2
:6379
REDIS_PASSWORD
=
yPyZH1DYMJhrVQgr
REDIS_CLUSTER_HOST
=
172.19.0.2
:6379
REDIS_CLUSTER_PASSWORD
=
yPyZH1DYMJhrVQgr
[JWT]
SECRET
=
hilo1632
ISSUER_API
=
hiloApi
...
...
main.go
View file @
4d1ea0c3
...
...
@@ -527,7 +527,7 @@ func RegisterToRedis(RedisClusterClient *redis.Client, port int, init bool) {
Score
:
float64
(
time
.
Now
()
.
Unix
()),
Member
:
ipPort
,
})
.
Err
();
err
!=
nil
{
failMsg
:=
fmt
.
Sprintf
(
"RegisterToRedis fail,redis fail,err:%v,serviceName:%v
,pwd:%v,mode:%v"
,
err
,
RegisterName
,
appConfig
.
GetConfigRedis
()
.
REDIS_CLUSTER_PASSWORD
,
appConfig
.
GetMode
()
)
failMsg
:=
fmt
.
Sprintf
(
"RegisterToRedis fail,redis fail,err:%v,serviceName:%v
"
,
err
,
RegisterName
)
mylogrus
.
MyLog
.
Errorf
(
failMsg
)
_
=
dingding
.
SendDingRobot
(
dingding
.
ROBOTWEBHOOK
,
failMsg
,
true
)
}
...
...
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