Compare commits
5 Commits
6d25376712
...
e48d7ab6c9
Author | SHA1 | Date | |
---|---|---|---|
e48d7ab6c9 | |||
8070c54ed5 | |||
fa2f1f54ad | |||
eda9be87a8 | |||
4124e0fd45 |
@ -11,8 +11,8 @@ system:
|
||||
cert_path: ""
|
||||
redis:
|
||||
db: 3
|
||||
addr: redis:6379
|
||||
password:
|
||||
addr: "172.16.100.114:6379"
|
||||
password: "kP6tW4tS3qB2dW4aE6uI5cX2"
|
||||
jaeger:
|
||||
addr: "172.16.100.93:9031"
|
||||
open: true
|
||||
|
@ -3,7 +3,7 @@ dubbo:
|
||||
demoZK:
|
||||
protocol: zookeeper
|
||||
timeout: 3s
|
||||
address: zookeeper:2181
|
||||
address: zookeeper-test.szjixun.cn:2181
|
||||
consumer:
|
||||
filter: tracing
|
||||
request-timeout: 30s
|
||||
|
@ -128,11 +128,11 @@ type AppConfig struct {
|
||||
|
||||
func GetConf() (iniConf string, err error) {
|
||||
if os.Getenv(model.MODE_ENV) != "" {
|
||||
if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s/%s", os.Getenv(model.MODE_ENV), model.SERVER_DUBBOGO_CONFIG)); err != nil {
|
||||
if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s%s", os.Getenv(model.MODE_ENV), model.SERVER_DUBBOGO_CONFIG)); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
iniConf = fmt.Sprintf("./conf/%s/%s", os.Getenv(model.MODE_ENV), model.SERVER_CONFIG)
|
||||
iniConf = fmt.Sprintf("./conf/%s", model.SERVER_CONFIG)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@ package service
|
||||
|
||||
import (
|
||||
"github.com/exhibition-main/api/account"
|
||||
appconfig "github.com/exhibition-main/internal/config"
|
||||
"github.com/exhibition-main/internal/msg"
|
||||
"github.com/exhibition-main/internal/response"
|
||||
"github.com/gin-gonic/gin"
|
||||
@ -18,10 +17,10 @@ func OnlySend(c *gin.Context) {
|
||||
response.ResponseQuickMsg(c, msg.Fail, msg.INVALID_PARAMS, nil)
|
||||
return
|
||||
}
|
||||
req.Domain = appconfig.Data.System.Domain
|
||||
req.Scope = "exhibition"
|
||||
//req.Domain = appconfig.Data.System.Domain
|
||||
//req.Scope = "exhibition"
|
||||
|
||||
res, err := AccountProvider.OnlySendMsg(c, &req)
|
||||
res, err := AccountProvider.SendMsg(c, &req)
|
||||
if err != nil {
|
||||
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
|
||||
return
|
||||
@ -41,8 +40,8 @@ func OnlyCheck(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
req.Domain = appconfig.Data.System.Domain
|
||||
req.Scope = "exhibition"
|
||||
//req.Domain = appconfig.Data.System.Domain
|
||||
//req.Scope = "exhibition"
|
||||
|
||||
res, err := AccountProvider.OnlyCheckMsg(c, &req)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user