优化环境变量及配置

This commit is contained in:
xh
2025-07-27 15:17:38 +08:00
parent c662dac9ca
commit 0305cb7970
18 changed files with 190 additions and 141 deletions

View File

@@ -49,7 +49,7 @@ func (tu toolsUtil) MakeMd5(data string) string {
func (tu toolsUtil) MakeToken() string {
ms := time.Now().UnixMilli()
token := tu.MakeMd5(tu.MakeUuid() + strconv.FormatInt(ms, 10) + tu.RandomString(8))
tokenSecret := token + config.Config.Secret
tokenSecret := token + config.AppConfig.Secret
return tu.MakeMd5(tokenSecret) + tu.RandomString(6)
}