Compare commits

..

No commits in common. "e48d7ab6c9129a73adef0f44b4b69103f1f555f4" and "6d2537671298e9eab25259c1241926314c71db5e" have entirely different histories.

4 changed files with 11 additions and 10 deletions

View File

@ -11,8 +11,8 @@ system:
cert_path: ""
redis:
db: 3
addr: "172.16.100.114:6379"
password: "kP6tW4tS3qB2dW4aE6uI5cX2"
addr: redis:6379
password:
jaeger:
addr: "172.16.100.93:9031"
open: true

View File

@ -3,7 +3,7 @@ dubbo:
demoZK:
protocol: zookeeper
timeout: 3s
address: zookeeper-test.szjixun.cn:2181
address: zookeeper:2181
consumer:
filter: tracing
request-timeout: 30s

View File

@ -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", model.SERVER_CONFIG)
iniConf = fmt.Sprintf("./conf/%s/%s", os.Getenv(model.MODE_ENV), model.SERVER_CONFIG)
return
}

View File

@ -2,6 +2,7 @@ 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"
@ -17,10 +18,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.SendMsg(c, &req)
res, err := AccountProvider.OnlySendMsg(c, &req)
if err != nil {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
return
@ -40,8 +41,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 {