From 8546acdc2a1f06253f30e0543fc202ebf5219bd0 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 18 八月 2023 16:31:40 +0800
Subject: [PATCH] fix
---
conf/config.go | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/conf/config.go b/conf/config.go
index d6541dd..2a9a3eb 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -59,7 +59,8 @@
}
GrpcServiceAddr struct {
- Aps string // jwt绛惧悕
+ Aps string // aps鏈嶅姟鍦板潃
+ Admin string // admin鏈嶅姟鍦板潃
}
config struct {
@@ -127,6 +128,7 @@
}
ShowConfig()
+ CheckConfig()
}
// WriteConfig 鍥炲啓閰嶇疆
@@ -148,3 +150,9 @@
log.Printf(" GrpcServiceAddr: %+v", Conf.GrpcServiceAddr)
log.Println("......................................................")
}
+
+func CheckConfig() {
+ if Conf.GrpcServiceAddr.Aps == "" {
+ log.Fatalf("%v 灏氭湭閰嶇疆", "GrpcServiceAddr.Aps")
+ }
+}
--
Gitblit v1.8.0