Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
3c50c51d
Commit
3c50c51d
authored
Mar 25, 2022
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[1006818] 斗罗
parent
9cd97618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+23
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
3c50c51d
...
...
@@ -325,6 +325,8 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
@Value
(
"${nft.bookGroupId}"
)
private
Long
nftBookGroupId
;
public
static
final
String
nftReleaseLockKey
=
"CHANNELCENTER:NFT:RELEASE"
;
@Autowired
private
BookProps
bookProps
;
@Override
public
Long
updateResourcePage
(
UpdateResourcePageVO
updateResourcePageVO
)
{
...
...
@@ -4215,9 +4217,30 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
JedisClusterUtils
.
setJsonList
(
DL_BOOK_SERVES_CACHE
+
sceneId
,
itemVOList
,
3600
*
72
);
}
}
setChannel
(
itemVOList
);
return
itemVOList
;
}
private
void
setChannel
(
List
<
ResourcePageItemVO
>
itemVOList
)
{
if
(
CollUtil
.
isEmpty
(
itemVOList
))
{
return
;
}
itemVOList
.
forEach
(
e
->
{
String
resultUrl
=
e
.
getResultUrl
();
if
(
StrUtil
.
isBlank
(
resultUrl
))
{
return
;
}
if
(
resultUrl
.
contains
(
"/C"
))
{
String
firstResultUrl
=
resultUrl
.
substring
(
0
,
resultUrl
.
indexOf
(
"/C"
));
String
lastResultUrl
=
resultUrl
.
substring
(
resultUrl
.
indexOf
(
"/C"
)
+
2
);
lastResultUrl
=
lastResultUrl
.
substring
(
lastResultUrl
.
indexOf
(
"/"
));
resultUrl
=
firstResultUrl
+
"/C"
+
BookProps
.
getDefaultChannelId
()
+
lastResultUrl
;
e
.
setResultUrl
(
resultUrl
);
}
});
}
private
void
fillTaskType
(
List
<
ResourcePageItemVO
>
itemAppAndProductVOList
)
{
if
(
CollUtil
.
isEmpty
(
itemAppAndProductVOList
))
{
return
;
...
...
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