licence.go
@@ -10,8 +10,6 @@ "github.com/shirou/gopsutil/host" ) const key = "flzxsqc,ysyhljt." type Licence struct { MachineCode string Expires int64 @@ -61,7 +59,7 @@ return AESEncodeStr(json, key) } func VerifyLicence(licenceCode string) uint32 { func VerifyLicence(licenceCode, key string) uint32 { decodeData := AESDecodeStr(licenceCode, key) if decodeData == nil { return ValidationErrorMalformed