From d384930963f9b960a06864223aff779edc4cf54c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 07 四月 2024 19:26:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm
---
conf/config.go | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/conf/config.go b/conf/config.go
index 96fe2b2..7526045 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -63,6 +63,7 @@
Aps string // aps鏈嶅姟鍦板潃
Admin string // admin鏈嶅姟鍦板潃
WMS string //wms鏈嶅姟鍦板潃
+ SRM string //srm鏈嶅姟鍦板潃
}
config struct {
@@ -137,6 +138,10 @@
if len(GrpcPort) > 0 {
Conf.GrpcServiceAddr.WMS = GrpcPort
}
+ srmPort := os.Getenv("SRM_GRPC")
+ if len(srmPort) > 0 {
+ Conf.GrpcServiceAddr.SRM = srmPort
+ }
ApsGrpc := os.Getenv("GRPC_PORT")
Host := os.Getenv("HOST")
--
Gitblit v1.8.0