Commit 6b8136c7 by huangchengyi

比价

parent ce03c31b
......@@ -10,7 +10,6 @@
8 = chip1stop
9 = aipco
10 = arrow
11 = bisco
12 = alliedelec
13 = avnet
14 = mouser
......
......@@ -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)
}
......@@ -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,
},
}
}
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 sign in to comment