Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
license-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
赵啸非
license-platform
Commits
74d6c09e
Commit
74d6c09e
authored
Jul 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试~~~~~~~~~~~
parent
5dbf6754
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
license-manager/src/main/java/com/mortals/xhx/module/license/service/impl/LicenseServiceImpl.java
...s/xhx/module/license/service/impl/LicenseServiceImpl.java
+2
-2
No files found.
license-manager/src/main/java/com/mortals/xhx/module/license/service/impl/LicenseServiceImpl.java
View file @
74d6c09e
...
...
@@ -45,6 +45,7 @@ public class LicenseServiceImpl extends AbstractCRUDServiceImpl<LicenseDao, Lice
if
(
between
<=
0
){
throw
new
AppException
(
"开始时间必须小于结束时间"
);
}
entity
.
setLicenseCode
(
String
.
format
(
"mac=%s&ip=%s"
,
entity
.
getMac
(),
entity
.
getIp
()));
//存放文件 xxx/
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getLicenseCode
()))
{
String
pubPath
=
uploadService
.
getFilePath
(
entity
.
getLicenseCode
()
+
"/license.pub"
);
...
...
@@ -55,13 +56,12 @@ public class LicenseServiceImpl extends AbstractCRUDServiceImpl<LicenseDao, Lice
entity
.
setLicensePriPath
(
priPath
);
}
entity
.
setLicenseCode
(
entity
.
getMac
()+
entity
.
getIp
());
super
.
saveBefore
(
entity
,
context
);
}
@Override
protected
void
updateBefore
(
LicenseEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setLicenseCode
(
entity
.
getMac
()+
entity
.
getIp
(
));
entity
.
setLicenseCode
(
String
.
format
(
"mac=%s&ip=%s"
,
entity
.
getMac
(),
entity
.
getIp
()
));
super
.
updateBefore
(
entity
,
context
);
}
}
\ No newline at end of file
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