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
20e7528c
Commit
20e7528c
authored
Apr 18, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-rsy-del' into 'master'
没有资源给默认文案 See merge request rays/pcloud-book!643
parents
730ffc55
3fe42bd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
PersonalStageBizImpl.java
...oud/book/personalstage/biz/impl/PersonalStageBizImpl.java
+2
-0
PersonalStageJumpBizImpl.java
...book/personalstage/biz/impl/PersonalStageJumpBizImpl.java
+6
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/personalstage/biz/impl/PersonalStageBizImpl.java
View file @
20e7528c
...
@@ -534,6 +534,8 @@ public class PersonalStageBizImpl implements PersonalStageBiz {
...
@@ -534,6 +534,8 @@ public class PersonalStageBizImpl implements PersonalStageBiz {
if
(!
ListUtils
.
isEmpty
(
bookServeVOS
)){
if
(!
ListUtils
.
isEmpty
(
bookServeVOS
)){
String
link
=
wechatLinkPrefix
+
"/dialog/resource?bookId="
+
bookDto
.
getBookId
()+
"&adviserId="
+
bookDto
.
getAdviserId
()+
"&channelId="
+
bookDto
.
getChannelId
()+
"&wxId="
+
userWxId
+
"&robotWxId="
+
robotId
;
String
link
=
wechatLinkPrefix
+
"/dialog/resource?bookId="
+
bookDto
.
getBookId
()+
"&adviserId="
+
bookDto
.
getAdviserId
()+
"&channelId="
+
bookDto
.
getChannelId
()+
"&wxId="
+
userWxId
+
"&robotWxId="
+
robotId
;
adviserBookUrl
=
UrlUtils
.
getShortUrl4Own
(
link
);
adviserBookUrl
=
UrlUtils
.
getShortUrl4Own
(
link
);
}
else
{
adviserBookUrl
=
"没有资源"
;
}
}
personalStageJumpBiz
.
handlePersonalStageJump
(
userWxId
,
robotId
,
content
,
JumpTypeEnum
.
ADVISER_BOOK
,
null
,
adviserBookUrl
);
personalStageJumpBiz
.
handlePersonalStageJump
(
userWxId
,
robotId
,
content
,
JumpTypeEnum
.
ADVISER_BOOK
,
null
,
adviserBookUrl
);
return
true
;
return
true
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/personalstage/biz/impl/PersonalStageJumpBizImpl.java
View file @
20e7528c
...
@@ -579,6 +579,9 @@ public class PersonalStageJumpBizImpl implements PersonalStageJumpBiz {
...
@@ -579,6 +579,9 @@ public class PersonalStageJumpBizImpl implements PersonalStageJumpBiz {
//加跳转衔接语编辑书链接
//加跳转衔接语编辑书链接
if
(!
StringUtil
.
isEmpty
(
linkupDelayDTO
.
getAdviserBookUrl
())){
if
(!
StringUtil
.
isEmpty
(
linkupDelayDTO
.
getAdviserBookUrl
())){
sendTextMessageVO
.
setContent
(
sendTextMessageVO
.
getContent
()+
linkupDelayDTO
.
getAdviserBookUrl
());
sendTextMessageVO
.
setContent
(
sendTextMessageVO
.
getContent
()+
linkupDelayDTO
.
getAdviserBookUrl
());
if
(
"没有资源"
.
equals
(
linkupDelayDTO
.
getAdviserBookUrl
())){
sendTextMessageVO
.
setContent
(
"该书资源正在录制中,敬请期待!"
);
}
}
}
wechatGroupConsr
.
sendMessage
(
JSON
.
toJSONString
(
sendTextMessageVO
));;
wechatGroupConsr
.
sendMessage
(
JSON
.
toJSONString
(
sendTextMessageVO
));;
}
else
if
(
ReplyTypeEnum
.
IMAGE
.
value
.
equals
(
jumpLinkup
.
getReplyType
()))
{
}
else
if
(
ReplyTypeEnum
.
IMAGE
.
value
.
equals
(
jumpLinkup
.
getReplyType
()))
{
...
@@ -1074,6 +1077,9 @@ public class PersonalStageJumpBizImpl implements PersonalStageJumpBiz {
...
@@ -1074,6 +1077,9 @@ public class PersonalStageJumpBizImpl implements PersonalStageJumpBiz {
//加跳转衔接语编辑书链接
//加跳转衔接语编辑书链接
if
(!
StringUtil
.
isEmpty
(
adviserBookUrl
)){
if
(!
StringUtil
.
isEmpty
(
adviserBookUrl
)){
sendTextMessageVO
.
setContent
(
sendTextMessageVO
.
getContent
()+
adviserBookUrl
);
sendTextMessageVO
.
setContent
(
sendTextMessageVO
.
getContent
()+
adviserBookUrl
);
if
(
"没有资源"
.
equals
(
adviserBookUrl
)){
sendTextMessageVO
.
setContent
(
"该书资源正在录制中,敬请期待!"
);
}
}
}
}
}
sendTextMessageVO
.
setAltId
(
robotWxId
);
sendTextMessageVO
.
setAltId
(
robotWxId
);
...
...
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