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
b9340faf
Commit
b9340faf
authored
Sep 13, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cc
parent
b384dfb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.go
main.go
+2
-2
No files found.
main.go
View file @
b9340faf
...
@@ -509,7 +509,7 @@ func selfCheck() {
...
@@ -509,7 +509,7 @@ func selfCheck() {
}
}
}
}
type
HiloConfig
struct
{
type
HiloConfig
s
struct
{
Name
string
`gorm:"primary_key"`
Name
string
`gorm:"primary_key"`
Value
string
Value
string
}
}
...
@@ -559,7 +559,7 @@ func main() {
...
@@ -559,7 +559,7 @@ func main() {
mylogrus
.
MyLog
.
Infof
(
"mysql connect success"
)
mylogrus
.
MyLog
.
Infof
(
"mysql connect success"
)
}
}
var
jwtConfig
=
HiloConfig
{}
var
jwtConfig
=
HiloConfig
s
{}
db
.
First
(
&
jwtConfig
,
"name = 'jwt_secret'"
)
db
.
First
(
&
jwtConfig
,
"name = 'jwt_secret'"
)
if
len
(
jwtConfig
.
Value
)
==
0
{
if
len
(
jwtConfig
.
Value
)
==
0
{
mylogrus
.
MyLog
.
Fatalln
(
"Empty jwt secret"
)
mylogrus
.
MyLog
.
Fatalln
(
"Empty jwt secret"
)
...
...
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