From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 18 十一月 2023 17:25:25 +0800 Subject: [PATCH] crm获取aps项目模块信息 --- conf/config.go | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/conf/config.go b/conf/config.go index 54544a4..96fe2b2 100644 --- a/conf/config.go +++ b/conf/config.go @@ -49,6 +49,7 @@ System struct { Env string // 鐜鍊� develop test public Port int // 绔彛 + GrpcPort string //grpc绔彛 DbType string // 鏁版嵁搴撶被鍨� UseMultipoint bool // 澶氱偣鐧诲綍鎷︽埅 UseRedis bool // 浣跨敤redis @@ -61,6 +62,7 @@ GrpcServiceAddr struct { Aps string // aps鏈嶅姟鍦板潃 Admin string // admin鏈嶅姟鍦板潃 + WMS string //wms鏈嶅姟鍦板潃 } config struct { @@ -131,7 +133,10 @@ if len(AdminGrpc) > 0 { Conf.GrpcServiceAddr.Admin = AdminGrpc } - + GrpcPort := os.Getenv("WMS_GRPC") + if len(GrpcPort) > 0 { + Conf.GrpcServiceAddr.WMS = GrpcPort + } ApsGrpc := os.Getenv("GRPC_PORT") Host := os.Getenv("HOST") -- Gitblit v1.8.0