记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
0d6d764a
Commit
0d6d764a
authored
Aug 29, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:藏品转赠过期批处理调整延后30秒处理;
parent
14cd2a5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
PlatformGoblinTaskHandler.java
...vice/executor/main/handler/PlatformGoblinTaskHandler.java
+5
-2
GoblinUserDigitalArtworkTaskController.java
...roller/goblin/GoblinUserDigitalArtworkTaskController.java
+6
-4
No files found.
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/src/main/java/com/liquidnet/service/executor/main/handler/PlatformGoblinTaskHandler.java
View file @
0d6d764a
...
@@ -9,6 +9,7 @@ import com.xxl.job.core.handler.annotation.XxlJob;
...
@@ -9,6 +9,7 @@ import com.xxl.job.core.handler.annotation.XxlJob;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.LinkedMultiValueMap
;
...
@@ -76,13 +77,15 @@ public class PlatformGoblinTaskHandler {
...
@@ -76,13 +77,15 @@ public class PlatformGoblinTaskHandler {
try
{
try
{
String
url
=
sevPlatformUrl
.
concat
(
"/platfrom/artwork/task/transfer_expire"
);
String
url
=
sevPlatformUrl
.
concat
(
"/platfrom/artwork/task/transfer_expire"
);
LinkedMultiValueMap
<
String
,
String
>
paramsMap
=
CollectionUtil
.
linkedMultiValueMapStringString
();
LinkedMultiValueMap
<
String
,
String
>
paramsMap
=
CollectionUtil
.
linkedMultiValueMapStringString
();
String
jobParam
=
XxlJobHelper
.
getJobParam
();
String
jobParam
=
XxlJobHelper
.
getJobParam
();
if
(
StringUtils
.
isNotBlank
(
jobParam
))
{
if
(
StringUtils
.
isNotBlank
(
jobParam
))
{
paramsMap
.
add
(
"expiredSeconds"
,
DESUtils
.
DES
().
encrypt
(
jobParam
));
paramsMap
.
add
(
"expiredSeconds"
,
DESUtils
.
DES
().
encrypt
(
jobParam
));
}
}
LinkedMultiValueMap
<
String
,
String
>
headersMap
=
CollectionUtil
.
linkedMultiValueMapStringString
();
headersMap
.
add
(
"Accept"
,
MediaType
.
APPLICATION_JSON_UTF8_VALUE
);
headersMap
.
add
(
"Content-Type"
,
MediaType
.
APPLICATION_FORM_URLENCODED_VALUE
);
XxlJobHelper
.
handleSuccess
(
"结果:"
+
HttpUtil
.
p
ut
(
url
,
param
sMap
));
XxlJobHelper
.
handleSuccess
(
"结果:"
+
HttpUtil
.
p
ost
(
url
,
paramsMap
,
header
sMap
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
XxlJobHelper
.
log
(
e
);
XxlJobHelper
.
log
(
e
);
XxlJobHelper
.
handleFail
();
XxlJobHelper
.
handleFail
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/goblin/GoblinUserDigitalArtworkTaskController.java
View file @
0d6d764a
...
@@ -7,12 +7,14 @@ import com.liquidnet.commons.lang.util.DESUtils;
...
@@ -7,12 +7,14 @@ import com.liquidnet.commons.lang.util.DESUtils;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.goblin.entity.GoblinNftTransferOrder
;
import
com.liquidnet.service.goblin.entity.GoblinNftTransferOrder
;
import
com.liquidnet.service.platform.service.impl.goblin.PlatformGoblinNftTransferOrderService
;
import
com.liquidnet.service.platform.service.impl.goblin.PlatformGoblinNftTransferOrderService
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
...
@@ -30,9 +32,9 @@ public class GoblinUserDigitalArtworkTaskController {
...
@@ -30,9 +32,9 @@ public class GoblinUserDigitalArtworkTaskController {
* @param expiredSeconds 过期时间,单位秒,不传默认24小时即86400秒(这里统一延后30秒处理)
* @param expiredSeconds 过期时间,单位秒,不传默认24小时即86400秒(这里统一延后30秒处理)
* @return ResponseDto<String>
* @return ResponseDto<String>
*/
*/
@P
u
tMapping
(
"transfer_expire"
)
@P
os
tMapping
(
"transfer_expire"
)
public
ResponseDto
<
String
>
processForTransferExpire
(
@RequestParam
(
required
=
false
)
String
expiredSeconds
)
{
public
ResponseDto
<
String
>
processForTransferExpire
(
@RequestParam
(
required
=
false
)
String
expiredSeconds
)
{
int
expiredSecondsIntVal
=
0
;
int
expiredSecondsIntVal
=
86400
+
3
0
;
if
(
StringUtils
.
isNotBlank
(
expiredSeconds
))
{
if
(
StringUtils
.
isNotBlank
(
expiredSeconds
))
{
try
{
try
{
String
decrypt
=
DESUtils
.
DES
().
decrypt
(
expiredSeconds
);
String
decrypt
=
DESUtils
.
DES
().
decrypt
(
expiredSeconds
);
...
...
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