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
0ab97961
Commit
0ab97961
authored
Apr 25, 2021
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[none]生成公众号二维码失败
parent
e1df2bc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+2
-16
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
0ab97961
...
@@ -29,7 +29,6 @@ import com.pcloud.book.group.dao.ResourcePageItemDao;
...
@@ -29,7 +29,6 @@ import com.pcloud.book.group.dao.ResourcePageItemDao;
import
com.pcloud.book.group.dto.BookGroupDTO
;
import
com.pcloud.book.group.dto.BookGroupDTO
;
import
com.pcloud.book.group.dto.BookGroupServeDTO
;
import
com.pcloud.book.group.dto.BookGroupServeDTO
;
import
com.pcloud.book.group.entity.BookAppletScene
;
import
com.pcloud.book.group.entity.BookAppletScene
;
import
com.pcloud.book.group.entity.BookGroup
;
import
com.pcloud.book.group.entity.BookGroupServe
;
import
com.pcloud.book.group.entity.BookGroupServe
;
import
com.pcloud.book.group.entity.ResourcePage
;
import
com.pcloud.book.group.entity.ResourcePage
;
import
com.pcloud.book.group.entity.ResourcePageColumn
;
import
com.pcloud.book.group.entity.ResourcePageColumn
;
...
@@ -365,13 +364,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -365,13 +364,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
}
}
Long
officialSceneId
=
resourcePage
.
getOfficialSceneId
();
Long
officialSceneId
=
resourcePage
.
getOfficialSceneId
();
if
(
null
==
officialSceneId
)
{
if
(
null
==
officialSceneId
)
{
CompletableFuture
<
Long
>
sceneIdFuture
=
CompletableFuture
.
supplyAsync
(()
->
officialSceneId
=
this
.
createOfficialScene
(
resourcePage
.
getBookGroupId
(),
resourcePage
.
getSceneId
());
this
.
createOfficialScene
(
resourcePage
.
getBookGroupId
(),
resourcePage
.
getSceneId
()));
try
{
officialSceneId
=
sceneIdFuture
.
get
();
}
catch
(
InterruptedException
|
ExecutionException
e
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"二维码生成失败!"
);
}
if
(
null
==
officialSceneId
)
{
if
(
null
==
officialSceneId
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"二维码生成失败!"
);
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"二维码生成失败!"
);
}
}
...
@@ -419,9 +412,8 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -419,9 +412,8 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
Long
bookId
=
null
;
Long
bookId
=
null
;
Long
channelId
=
null
;
Long
channelId
=
null
;
Long
adviserId
=
null
;
Long
adviserId
=
null
;
BookGroupDTO
bookGroupDTO
=
new
BookGroupDTO
();
if
(
null
!=
bookGroupId
)
{
if
(
null
!=
bookGroupId
)
{
bookGroupDTO
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
if
(
null
==
bookGroupDTO
)
{
if
(
null
==
bookGroupDTO
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"RAYS码不存在"
);
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"RAYS码不存在"
);
}
}
...
@@ -446,12 +438,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -446,12 +438,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
if
(
groupQrcodeVO
==
null
)
{
if
(
groupQrcodeVO
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"二维码生成失败!"
);
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"二维码生成失败!"
);
}
}
if
(
null
!=
bookGroupId
)
{
BookGroup
group
=
new
BookGroup
();
group
.
setId
(
bookGroupId
);
group
.
setSceneId
(
groupQrcodeVO
.
getSceneId
());
bookGroupDao
.
update
(
group
);
}
return
groupQrcodeVO
.
getSceneId
();
return
groupQrcodeVO
.
getSceneId
();
}
}
return
null
;
return
null
;
...
...
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