Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
e5cddfb2
Commit
e5cddfb2
authored
Jul 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加门户license验证
parent
ff3a36b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
portal-manager/src/main/java/com/mortals/xhx/common/utils/CompareTimeUtil.java
...in/java/com/mortals/xhx/common/utils/CompareTimeUtil.java
+2
-1
No files found.
portal-manager/src/main/java/com/mortals/xhx/common/utils/CompareTimeUtil.java
View file @
e5cddfb2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment