zhangzengfei
2019-11-18 351d2832f1b4a7b79a97c2681f6d12c761cc9bb8
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