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 @@ -62,6 +63,7 @@ Aps string // aps服务地址 Admin string // admin服务地址 WMS string //wms服务地址 SRM string //srm服务地址 } config struct { @@ -136,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")