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
df578ffe
Commit
df578ffe
authored
Feb 11, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-1002291-new' into 'master'
feat 1002291 See merge request rays/pcloud-book!379
parents
91115a54
1c754dc2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
14 deletions
+26
-14
SelfRobotKeywordBizImpl.java
...cloud/book/keywords/biz/impl/SelfRobotKeywordBizImpl.java
+1
-0
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+22
-11
PcloudSkillBizImpl.java
...va/com/pcloud/book/skill/biz/impl/PcloudSkillBizImpl.java
+1
-1
PcloudGroupActivityDao.xml
...rc/main/resources/mapper/skill/PcloudGroupActivityDao.xml
+2
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/SelfRobotKeywordBizImpl.java
View file @
df578ffe
...
...
@@ -683,6 +683,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
taskSubscribeBiz
.
subscribeTask
(
wxUserId
,
null
,
relSkillId
,
robotId
);
}
else
if
(
2
==
type
){
pcloudGroupActivityBiz
.
processGroup
(
wxUserId
,
robotId
,
Long
.
valueOf
(
relSkillId
.
toString
()));
pcloudSkillBiz
.
sendResource
(
id
,
wxUserId
,
robotId
,
relSkillId
);
}
else
if
(
3
==
type
){
pcloudSkillBiz
.
sendResource
(
id
,
wxUserId
,
robotId
,
relSkillId
);
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
df578ffe
...
...
@@ -18,6 +18,7 @@ import com.pcloud.common.core.aspect.ParamLog;
import
com.pcloud.common.page.PageBeanNew
;
import
com.pcloud.common.page.PageParam
;
import
com.sdk.wxgroup.SendGroupInviteVO
;
import
com.sdk.wxgroup.SendPicMessageVO
;
import
com.sdk.wxgroup.WxGroupSDK
;
import
org.springframework.stereotype.Service
;
...
...
@@ -87,18 +88,28 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
log
.
error
(
"[processGroup] error 共读不存在"
);
return
;
}
GroupQrcodeBaseInfoVO
groupQrcode
=
groupQrcodeBiz
.
getBaseById
(
byId
.
getBookGroupQrcodeId
());
if
(
Objects
.
isNull
(
groupQrcode
))
{
log
.
error
(
"[processGroup] error 共读对应社群不存在"
);
return
;
if
(
0
==
byId
.
getJoinType
())
{
GroupQrcodeBaseInfoVO
groupQrcode
=
groupQrcodeBiz
.
getBaseById
(
byId
.
getBookGroupQrcodeId
());
if
(
Objects
.
isNull
(
groupQrcode
))
{
log
.
error
(
"[processGroup] error 共读对应社群不存在"
);
return
;
}
SendGroupInviteVO
vo
=
new
SendGroupInviteVO
();
vo
.
setWxId
(
wxId
);
vo
.
setAltId
(
robotWxId
);
vo
.
setIp
(
readingActivityBiz
.
getIP
(
robotWxId
));
vo
.
setWxGroupId
(
groupQrcode
.
getWeixinGroupId
());
WxGroupSDK
.
sendGroupInvite
(
vo
);
log
.
info
(
"[processGroup] sendGroupInvite:{}"
,
vo
);
}
if
(
1
==
byId
.
getJoinType
())
{
SendPicMessageVO
vo
=
new
SendPicMessageVO
();
vo
.
setPicUrl
(
byId
.
getGroupPic
());
vo
.
setWxGroupId
(
wxId
);
vo
.
setAltId
(
robotWxId
);
vo
.
setIp
(
readingActivityBiz
.
getIP
(
robotWxId
));
WxGroupSDK
.
sendPicMessage
(
vo
);
}
SendGroupInviteVO
vo
=
new
SendGroupInviteVO
();
vo
.
setWxId
(
wxId
);
vo
.
setAltId
(
robotWxId
);
vo
.
setIp
(
readingActivityBiz
.
getIP
(
robotWxId
));
vo
.
setWxGroupId
(
groupQrcode
.
getWeixinGroupId
());
WxGroupSDK
.
sendGroupInvite
(
vo
);
log
.
info
(
"[processGroup] sendGroupInvite:{}"
,
vo
);
}
@Override
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudSkillBizImpl.java
View file @
df578ffe
...
...
@@ -390,7 +390,7 @@ public class PcloudSkillBizImpl implements PcloudSkillBiz {
}
else
if
(
WelcomeReplyTypeEnum
.
RESOURCE
.
value
.
equals
(
type
))
{
SendFileVO
sendFileVO
=
new
SendFileVO
();
sendFileVO
.
setFileUrl
(
reply
.
getResourceUrl
());
sendFileVO
.
setFileName
(
reply
.
get
ResourceName
()
);
sendFileVO
.
setFileName
(
reply
.
get
Content
().
split
(
"."
)[
0
]
);
sendFileVO
.
setIp
(
ip
);
sendFileVO
.
setAltId
(
robotWxId
);
sendFileVO
.
setWxId
(
userWxId
);
...
...
pcloud-service-book/src/main/resources/mapper/skill/PcloudGroupActivityDao.xml
View file @
df578ffe
...
...
@@ -31,8 +31,8 @@
<select
id=
"queryGroupActivity"
resultType=
"com.pcloud.book.skill.facade.response.QueryGroupActivityResponseVO"
parameterType=
"map"
>
SELECT
a.id,
a.
NAME
,
a.description,
a.
`name`
,
a.description
as `desc`
,
a.join_type AS joinType,
a.group_pic AS groupPic,
a.book_group_qrcode_id AS bookGroupQrcodeId,
...
...
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