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
002836fe
Commit
002836fe
authored
Jul 22, 2020
by
桂前礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [none] 解决未使用的群再更新时出现的空指针异常
parent
b52fb6ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
WeixinQrcodeBizImpl.java
...a/com/pcloud/book/group/biz/impl/WeixinQrcodeBizImpl.java
+14
-11
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/WeixinQrcodeBizImpl.java
View file @
002836fe
...
...
@@ -215,18 +215,21 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
private
void
updateMediaId
(
UpdateQrDTO
updateQrDTO
,
Long
accountId
,
String
coverMediaId
)
{
WeixinQrcode
qrcode
=
weixinQrcodeDao
.
getById
(
updateQrDTO
.
getId
());
// 未使用的群暂时不做处理
GroupQrcode
baseById
=
groupQrcodeDao
.
getByWxGroupId
(
qrcode
.
getWeixinGroupId
());
String
mediaId
=
groupQrcodeDao
.
getMediaId
(
baseById
.
getId
());
GroupNewsMaterialAddDTO
groupNewsMaterialAddDTO
=
new
GroupNewsMaterialAddDTO
();
groupNewsMaterialAddDTO
.
setAccountId
(
accountId
);
groupNewsMaterialAddDTO
.
setCoverMediaId
(
coverMediaId
);
groupNewsMaterialAddDTO
.
setGroupName
(
baseById
.
getGroupName
());
groupNewsMaterialAddDTO
.
setQrcodeUrl
(
updateQrDTO
.
getUrl
());
groupNewsMaterialAddDTO
.
setMediaId
(
mediaId
);
String
mId
=
ResponseHandleUtil
.
parseResponse
(
materialService
.
getGroupNewsMaterial
(
groupNewsMaterialAddDTO
),
String
.
class
);
if
(
StrUtil
.
isBlank
(
mediaId
)){
mediaId
=
mId
;
groupQrcodeDao
.
updateMediaId
(
baseById
.
getId
(),
mediaId
);
if
(
baseById
!=
null
&&
baseById
.
getId
()!=
null
){
String
mediaId
=
groupQrcodeDao
.
getMediaId
(
baseById
.
getId
());
GroupNewsMaterialAddDTO
groupNewsMaterialAddDTO
=
new
GroupNewsMaterialAddDTO
();
groupNewsMaterialAddDTO
.
setAccountId
(
accountId
);
groupNewsMaterialAddDTO
.
setCoverMediaId
(
coverMediaId
);
groupNewsMaterialAddDTO
.
setGroupName
(
baseById
.
getGroupName
());
groupNewsMaterialAddDTO
.
setQrcodeUrl
(
updateQrDTO
.
getUrl
());
groupNewsMaterialAddDTO
.
setMediaId
(
mediaId
);
String
mId
=
ResponseHandleUtil
.
parseResponse
(
materialService
.
getGroupNewsMaterial
(
groupNewsMaterialAddDTO
),
String
.
class
);
if
(
StrUtil
.
isBlank
(
mediaId
)){
mediaId
=
mId
;
groupQrcodeDao
.
updateMediaId
(
baseById
.
getId
(),
mediaId
);
}
}
}
...
...
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