feat: 添加令牌ip白名单功能

This commit is contained in:
CalciumIon committed 2024-09-17 20:49:51 +08:00
1 parent 4007b688f9
commit 6d2948d684
6 files changed
+57 -3

No files matched your search

+5
View File
@@ -128,6 +128,11 @@ func IntMax(a int, b int) int {
}
}
func IsIP(s string) bool {
ip := net.ParseIP(s)
return ip != nil
}
func GetUUID() string {
code := uuid.New().String()
code = strings.Replace(code, "-", "", -1)