From 1b4337e04bc35c8b6f4931a5896f04884fef69c6 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期四, 02 七月 2020 15:18:43 +0800 Subject: [PATCH] fix AggregateTaskList --- extend/config/config.go | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/extend/config/config.go b/extend/config/config.go index 3ba1941..ff08f67 100644 --- a/extend/config/config.go +++ b/extend/config/config.go @@ -87,13 +87,18 @@ var FaceDetectSet = &facedetect{} +type shop struct { + Url string `mapstructure:"url"` +} +var ShopConf = &shop{} + // Init is an exported method that takes the environment starts the viper // (external lib) and returns the configuration struct. func Init(env string) { var err error viper.SetConfigType("yaml") viper.SetConfigName(env) - viper.AddConfigPath("/opt/vasystem/config/") + viper.AddConfigPath("../config/") err = viper.ReadInConfig() if err != nil { log.Fatal("error on parsing configuration file", err) @@ -105,4 +110,5 @@ viper.UnmarshalKey("dbpersoncompare", DbPersonCompInfo) viper.UnmarshalKey("espersoncompare", EsCompServerInfo) viper.UnmarshalKey("elastic.basicFS", BasicFS) + viper.UnmarshalKey("shop", ShopConf) } -- Gitblit v1.8.0