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
e9a23a78
Commit
e9a23a78
authored
Oct 21, 2020
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[1026053] 精品文章里配置的小睿的链接不能在小程序里显示
parent
89f3d60c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletions
+27
-1
BookGroupBiz.java
...src/main/java/com/pcloud/book/group/biz/BookGroupBiz.java
+7
-0
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+19
-0
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/BookGroupBiz.java
View file @
e9a23a78
...
@@ -974,4 +974,11 @@ public interface BookGroupBiz {
...
@@ -974,4 +974,11 @@ public interface BookGroupBiz {
BookGroupDTO
getRayBookByBookGroupId
(
Long
bookGroupId
);
BookGroupDTO
getRayBookByBookGroupId
(
Long
bookGroupId
);
List
<
BookGroupDTO
>
getBookGroupsByBookIds
(
List
<
Long
>
bookIds
,
List
<
Long
>
adviserIds
,
List
<
Long
>
channelIds
);
List
<
BookGroupDTO
>
getBookGroupsByBookIds
(
List
<
Long
>
bookIds
,
List
<
Long
>
adviserIds
,
List
<
Long
>
channelIds
);
/**
* 判断是否是小睿链接
* @author:zhuyajie
* @date:2020/10/21 17:20
* * @param null
*/
Boolean
checkRayUrl
(
String
url
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
e9a23a78
...
@@ -5189,6 +5189,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5189,6 +5189,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
if
(!
ListUtils
.
isEmpty
(
appIds
))
{
if
(!
ListUtils
.
isEmpty
(
appIds
))
{
appDtoMap
=
appConsr
.
mapByIds
(
appIds
);
appDtoMap
=
appConsr
.
mapByIds
(
appIds
);
}
}
List
<
BookServeDTO
>
removeList
=
new
ArrayList
<>();
for
(
BookServeDTO
bookServeDTO
:
serveDTOList
)
{
for
(
BookServeDTO
bookServeDTO
:
serveDTOList
)
{
if
(!
MapUtils
.
isEmpty
(
productDtoMap
)
&&
AppAndProductTypeEnum
.
PRODUCT
.
value
.
equals
(
bookServeDTO
.
getServeType
()))
{
if
(!
MapUtils
.
isEmpty
(
productDtoMap
)
&&
AppAndProductTypeEnum
.
PRODUCT
.
value
.
equals
(
bookServeDTO
.
getServeType
()))
{
ProductDto
productDto
=
productDtoMap
.
get
(
bookServeDTO
.
getServeId
());
ProductDto
productDto
=
productDtoMap
.
get
(
bookServeDTO
.
getServeId
());
...
@@ -5205,6 +5206,8 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5205,6 +5206,8 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
else
{
}
else
{
bookServeDTO
.
setHasThirdLink
(
false
);
bookServeDTO
.
setHasThirdLink
(
false
);
}
}
}
else
{
removeList
.
add
(
bookServeDTO
);
}
}
}
}
if
(!
MapUtils
.
isEmpty
(
appDtoMap
)
&&
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
bookServeDTO
.
getServeType
()))
{
if
(!
MapUtils
.
isEmpty
(
appDtoMap
)
&&
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
bookServeDTO
.
getServeType
()))
{
...
@@ -5219,9 +5222,15 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5219,9 +5222,15 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
else
{
}
else
{
bookServeDTO
.
setHasThirdLink
(
false
);
bookServeDTO
.
setHasThirdLink
(
false
);
}
}
if
(
checkRayUrl
(
appDto
.
getTurnUrl
())
&&
AppTypeEnum
.
ARTICLE
.
value
.
equals
(
appDto
.
getTypeCode
())){
removeList
.
add
(
bookServeDTO
);
}
}
else
{
removeList
.
add
(
bookServeDTO
);
}
}
}
}
}
}
serveDTOList
.
removeAll
(
removeList
);
}
}
@Override
@Override
...
@@ -5865,4 +5874,14 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -5865,4 +5874,14 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
}
return
bookGroupDTOList
;
return
bookGroupDTOList
;
}
}
@Override
public
Boolean
checkRayUrl
(
String
url
)
{
// https://qrcode.raysgo.com/2233
// https://qrcode.raysgo.com/t-2/1404/2280
if
(!
StringUtil
.
isEmpty
(
url
)
&&
url
.
startsWith
(
bookGroupQrcodeDomain
)){
return
true
;
}
return
false
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
e9a23a78
...
@@ -1519,7 +1519,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -1519,7 +1519,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if
(
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
item
.
getServeType
()))
{
if
(
AppAndProductTypeEnum
.
APP
.
value
.
equals
(
item
.
getServeType
()))
{
AppDto
appDto
=
appDtoMap
.
get
(
item
.
getServeId
());
AppDto
appDto
=
appDtoMap
.
get
(
item
.
getServeId
());
if
(
appDto
!=
null
)
{
if
(
appDto
!=
null
)
{
if
(
!
StringUtil
.
isEmpty
(
appDto
.
getTurnUrl
())
&&
appDto
.
getTurnUrl
().
contains
(
"qrcode.5rs.me"
)
&&
"ARTICLE"
.
equals
(
appDto
.
getTypeCode
())){
if
(
bookGroupBiz
.
checkRayUrl
(
appDto
.
getTurnUrl
())
&&
AppTypeEnum
.
ARTICLE
.
value
.
equals
(
appDto
.
getTypeCode
())){
list_remove
.
add
(
item
);
list_remove
.
add
(
item
);
}
}
item
.
setServeName
(
appDto
.
getTitle
());
item
.
setServeName
(
appDto
.
getTitle
());
...
...
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