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
732a2f3d
Commit
732a2f3d
authored
Nov 26, 2020
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[1003921]自建码规则更新-小睿码改成/t-3
parent
01118c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+12
-6
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
732a2f3d
...
...
@@ -564,14 +564,14 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupDao
.
insert
(
bookGroup
);
BookGroup
group
=
new
BookGroup
();
group
.
setId
(
bookGroup
.
getId
());
group
.
setGroupQrcodeLink
(
this
.
getGroupQrcodeLink
(
bookGroup
.
getId
(),
adviserId
));
group
.
setGroupQrcodeLink
(
this
.
getGroupQrcodeLink
(
bookGroup
.
getId
(),
adviserId
,
joinGroupType
));
if
(
joinGroupType
!=
null
)
{
group
.
setJoinGroupType
(
joinGroupType
);
}
bookGroupDao
.
update
(
group
);
}
else
{
bookGroupDao
.
insert
(
bookGroup
);
String
groupQrcodeLink
=
this
.
getGroupQrcodeLink
(
bookGroup
.
getId
(),
adviserId
);
String
groupQrcodeLink
=
this
.
getGroupQrcodeLink
(
bookGroup
.
getId
(),
adviserId
,
joinGroupType
);
String
groupQrcodeUrl
=
QrcodeUtils
.
createWithMargin
(
groupQrcodeLink
,
1
);
BookGroup
group
=
new
BookGroup
();
group
.
setId
(
bookGroup
.
getId
());
...
...
@@ -760,7 +760,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
group
.
setSceneId
(
groupQrcodeVO
.
getSceneId
());
group
.
setGroupQrcodeUrl
(
groupQrcodeVO
.
getQrcodeUrl
());
group
.
setGroupQrcodeLink
(
this
.
getGroupQrcodeLink
(
bookGroupDTO
.
getId
(),
adviserId
));
group
.
setGroupQrcodeLink
(
this
.
getGroupQrcodeLink
(
bookGroupDTO
.
getId
(),
adviserId
,
joinGroupType
));
bookGroupDao
.
update
(
group
);
// 展示返回最新生成的
bookGroupDTO
.
setGroupQrcodeUrl
(
groupQrcodeVO
.
getQrcodeUrl
());
...
...
@@ -773,7 +773,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
final
Boolean
haveQrcode
=
this
.
isHaveQrcode
(
bookId
,
channelId
,
adviserId
);
// 如果之前是公众号二维码则要重新生成自有码
if
(!
haveQrcode
)
{
String
groupQrcodeLink
=
this
.
getGroupQrcodeLink
(
bookGroupDTO
.
getId
(),
adviserId
);
String
groupQrcodeLink
=
this
.
getGroupQrcodeLink
(
bookGroupDTO
.
getId
(),
adviserId
,
joinGroupType
);
String
groupQrcodeUrl
=
QrcodeUtils
.
createWithMargin
(
groupQrcodeLink
,
1
);
group
.
setGroupQrcodeUrl
(
groupQrcodeUrl
);
group
.
setGroupQrcodeLink
(
groupQrcodeLink
);
...
...
@@ -830,9 +830,15 @@ public class BookGroupBizImpl implements BookGroupBiz {
t-1,自建码,sceneId
t-2,社群码,bookGroupId
*/
private
String
getGroupQrcodeLink
(
Long
bookGroupId
,
Long
adviserId
)
{
private
String
getGroupQrcodeLink
(
Long
bookGroupId
,
Long
adviserId
,
Integer
joinGroupType
)
{
Long
agentId
=
adviserConsr
.
getAgentIdByAdviser
(
adviserId
);
String
url
=
bookGroupQrcodeDomain
+
"/t-2/"
+
agentId
+
"/"
+
bookGroupId
;
String
url
;
if
(
JoinGroupTypeEnum
.
XIAORUI
.
getCode
().
equals
(
joinGroupType
)){
//小睿码t-3
url
=
bookGroupQrcodeDomain
+
"/t-3/"
+
agentId
+
"/"
+
bookGroupId
;
}
else
{
url
=
bookGroupQrcodeDomain
+
"/t-2/"
+
agentId
+
"/"
+
bookGroupId
;
}
return
url
;
}
...
...
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