mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-24 00:23:10 +08:00
优化环境变量及配置
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user