Quellcode durchsuchen

Merge branch 'ETA_1.8.0' into debug

# Conflicts:
#	controllers/base_auth.go
#	go.mod
#	go.sum
#	utils/config.go
zwxi vor 10 Monaten
Ursprung
Commit
01835c60c0
2 geänderte Dateien mit 6 neuen und 7 gelöschten Zeilen
  1. 6 6
      controllers/base_auth.go
  2. 0 1
      utils/config.go

+ 6 - 6
controllers/base_auth.go

@@ -281,12 +281,12 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
 		}
 	}
 
-	if c.Lang == utils.EnLangVersion {
-		msg := c.Data["json"].(*models.BaseResponse).Msg
-		if utils.ViperConfig.GetBool(msg) {
-			c.Data["json"].(*models.BaseResponse).Msg = utils.ViperConfig.GetString(msg)
-		}
-	}
+	//if c.Lang == utils.EnLangVersion {
+	//	msg := c.Data["json"].(*models.BaseResponse).Msg
+	//	if utils.ViperConfig.GetBool(msg) {
+	//		c.Data["json"].(*models.BaseResponse).Msg = utils.ViperConfig.GetString(msg)
+	//	}
+	//}
 
 	//新增uuid记录
 	{

+ 0 - 1
utils/config.go

@@ -262,7 +262,6 @@ var (
 	ViperConfig *viper.Viper
 )
 
-
 func init() {
 	tmpRunMode, err := web.AppConfig.String("run_mode")
 	if err != nil {