From b06dff2254f73c8f7aeb0bc58c04025561b84dcc Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 01 八月 2024 16:11:32 +0800
Subject: [PATCH] 出入库明细单据多单位数据使用保存的多单位数据,拼接多个
---
conf/config.go | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/conf/config.go b/conf/config.go
index 8f40e75..da9d1d8 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -3,6 +3,7 @@
import (
"log"
"os"
+ "wms/constvar"
"wms/pkg/logx"
"wms/pkg/mysqlx"
@@ -30,6 +31,7 @@
JWTSecret string
FileServer string //鏂囦欢鏈嶅姟鍣ㄥ湴鍧�
ServerId string //鏈嶅姟ID
+ Env constvar.Env
GrpcPort string //grpc绔彛鍙�
CompanyName string //鍏徃鍚�
}
@@ -39,9 +41,10 @@
}
grpcServerConf struct {
- ApsAddr string //aps鏈嶅姟grpc鍦板潃
- CrmAddr string //crm鏈嶅姟grpc鍦板潃
- SrmAddr string //srm鏈嶅姟grpc鍦板潃
+ AdminAddr string //admin鏈嶅姟grpc鍦板潃
+ ApsAddr string //aps鏈嶅姟grpc鍦板潃
+ CrmAddr string //crm鏈嶅姟grpc鍦板潃
+ SrmAddr string //srm鏈嶅姟grpc鍦板潃
}
fileTemplateConf struct {
@@ -79,6 +82,7 @@
nodeId := os.Getenv("NODE_ID") // 涓昏处鎴风敤鎴峰悕
host := os.Getenv("HOST") // 鏈満IP鍦板潃
GrpcPort := os.Getenv("WMS_GRPC") // 鍙澶栨彁渚沢rpc鏈嶅姟锛屾湰鏈嶅姟涓嶇敤
+ adminAddr := os.Getenv("ADMIN_GRPC")
apsAddr := os.Getenv("APS_GRPC")
crmAddr := os.Getenv("CRM_GRPC")
srmAddr := os.Getenv("SRM_GRPC")
@@ -92,6 +96,9 @@
if len(host) > 0 {
WebConf.Host = host
}
+ if len(adminAddr) > 0 {
+ GrpcServerConf.AdminAddr = adminAddr
+ }
if len(apsAddr) > 0 {
GrpcServerConf.ApsAddr = apsAddr
}
--
Gitblit v1.8.0