From 1cd1206c18ed14dd9ebf2baf477f46c847a271b0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 15 三月 2024 16:39:19 +0800
Subject: [PATCH] merge

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