mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	release: v1.9.1
This commit is contained in:
		@@ -2,6 +2,7 @@ package config
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"mayfly-go/pkg/i18n"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Server struct {
 | 
			
		||||
@@ -17,7 +18,7 @@ type Server struct {
 | 
			
		||||
 | 
			
		||||
func (s *Server) Default() {
 | 
			
		||||
	if s.Lang == "" {
 | 
			
		||||
		s.Lang = "zh_CN"
 | 
			
		||||
		s.Lang = i18n.Zh_CN
 | 
			
		||||
	}
 | 
			
		||||
	if s.Model == "" {
 | 
			
		||||
		s.Model = "release"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user