From 005b73c5d8520400f9d3abeffbf87396c319dc43 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 16 八月 2023 14:19:07 +0800
Subject: [PATCH] 销售价格

---
 conf/config.go |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/conf/config.go b/conf/config.go
index 36a1dcd..789da01 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -112,6 +112,7 @@
 		log.Fatalf("Unmarshal err:%v", err)
 	}
 	ShowConfig()
+	CheckConfig()
 }
 
 // WriteConfig 鍥炲啓閰嶇疆
@@ -133,3 +134,9 @@
 	log.Printf("   GrpcServiceAddr:       %+v", Conf.GrpcServiceAddr)
 	log.Println("......................................................")
 }
+
+func CheckConfig() {
+	if Conf.GrpcServiceAddr.Aps == "" {
+		log.Fatalf("%v 灏氭湭閰嶇疆", "GrpcServiceAddr.Aps")
+	}
+}

--
Gitblit v1.8.0