Browse Source

Merge branch 'bzq/dev' of eta_mini/eta_mini_crm into master

鲍自强 9 months ago
parent
commit
f886cfbe45
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/config.go

+ 2 - 1
utils/config.go

@@ -35,13 +35,14 @@ func init() {
 	RunMode = tmpRunMode
 	fmt.Println("RunMode:", RunMode)
 	if RunMode == "" {
-		RunMode = "debug"
 		configPath := `/home/code/config/eta_mini_crm/conf/app.conf`
 		fmt.Println("configPath:", configPath)
 		err = web.LoadAppConfig("ini", configPath)
 		if err != nil {
 			fmt.Println("web.LoadAppConfig Err:" + err.Error())
 		}
+		tmpRunMode, _ := web.AppConfig.String("run_mode")
+		RunMode = tmpRunMode
 	}
 
 	config, err := web.AppConfig.GetSection(RunMode)