Compare commits

...

5 Commits

Author SHA1 Message Date
e48d7ab6c9 更新 2024-02-18 14:41:06 +08:00
8070c54ed5 更新 'conf/test/config.yaml' 2024-02-18 13:43:36 +08:00
fa2f1f54ad 更新 'conf/test/dubbogo.yaml' 2024-02-18 13:38:16 +08:00
eda9be87a8 更新 'internal/config/app_config.go' 2024-02-18 13:32:12 +08:00
4124e0fd45 更新 'internal/config/app_config.go' 2024-02-18 13:27:33 +08:00
4 changed files with 10 additions and 11 deletions

View File

@ -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

View File

@ -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

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

View File

@ -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 {