From 35f20bd231581b8009008b5fa832b888239bb388 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 07 十一月 2023 14:29:40 +0800 Subject: [PATCH] 销售明细单从wms获取库存信息 --- conf/config.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/conf/config.go b/conf/config.go index 54544a4..b0dd58a 100644 --- a/conf/config.go +++ b/conf/config.go @@ -61,6 +61,7 @@ GrpcServiceAddr struct { Aps string // aps鏈嶅姟鍦板潃 Admin string // admin鏈嶅姟鍦板潃 + WMS string //wms鏈嶅姟鍦板潃 } config struct { @@ -131,7 +132,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