Commit e5cddfb2 authored by 赵啸非's avatar 赵啸非

添加门户license验证

parent ff3a36b0
......@@ -43,7 +43,8 @@ public class CompareTimeUtil {
public static Long getCompareTime() throws ParseException {
// 解密比较时间
String applicationInfo = CipherUtil.getApplicationInfo();
//String applicationInfo = CipherUtil.getApplicationInfo();
String applicationInfo = CipherUtil.getMacAndIpInfo();
String licenseCode = DecodeUtil.encryptBySymmetry(applicationInfo, DecodeUtil.AES_KEY, DecodeUtil.AES, true);
String key = licenseCode.replaceAll("\\s*", "").replaceAll("[^(A-Za-z)]", "");
key = key.length() > 16 ? key.substring(0, 16) : generateKey(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment