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
437f453b
Commit
437f453b
authored
Jul 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试~~~~~~~~~~~
parent
74d6c09e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
license-manager/pom.xml
license-manager/pom.xml
+1
-1
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/pom.xml
View file @
437f453b
...
...
@@ -44,7 +44,7 @@
<id>
test
</id>
<properties>
<profiles.active>
test
</profiles.active>
<profiles.server.debug>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=651
4
</profiles.server.debug>
<profiles.server.debug>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=651
5
</profiles.server.debug>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
...
...
license-manager/src/main/java/com/mortals/xhx/module/license/service/impl/LicenseServiceImpl.java
View file @
437f453b
...
...
@@ -45,7 +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
()));
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"
);
...
...
@@ -61,7 +61,7 @@ public class LicenseServiceImpl extends AbstractCRUDServiceImpl<LicenseDao, Lice
@Override
protected
void
updateBefore
(
LicenseEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setLicenseCode
(
String
.
format
(
"mac=%s
&
ip=%s"
,
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