Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6b8136c7
authored
Dec 29, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
比价
parent
ce03c31b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
conf/dev/search.ini
controller/parity_controller.go
pkg/config/redis.go
conf/dev/search.ini
View file @
6b8136c7
...
...
@@ -10,7 +10,6 @@
8
=
chip1stop
9
=
aipco
10
=
arrow
11
=
bisco
12
=
alliedelec
13
=
avnet
14
=
mouser
...
...
controller/parity_controller.go
View file @
6b8136c7
...
...
@@ -17,5 +17,5 @@ func GetParityData(ctx *gin.Context) {
optimumservice
:=
service
.
ParityService
{}
apiData
:=
optimumservice
.
GetParity
(
ctx
)
common
.
PrintDebugHtml
(
ctx
,
"-----执行结束----"
)
//debug
common
.
Output
(
ctx
,
apiData
.
ErrorCode
,
"查询成功"
,
apiData
.
Data
)
common
.
Output
(
ctx
,
apiData
.
ErrorCode
,
apiData
.
ErrorMsg
,
apiData
.
Data
)
}
pkg/config/redis.go
View file @
6b8136c7
...
...
@@ -29,5 +29,11 @@ func BuildRedisConfgs() (RedisDatabaseMap map[string]RedisDatabase) {
MaxIdle
:
redis_write_max_idle
,
MaxActive
:
redis_write_max_active
,
},
"api_redis"
:
{
Host
:
Get
(
"api_redis.host"
)
.
String
(),
Password
:
Get
(
"api_redis.password"
)
.
String
(),
MaxIdle
:
redis_write_max_idle
,
MaxActive
:
redis_write_max_active
,
},
}
}
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