Commit 1c754dc2 by zhuyajie Committed by 裴大威

feat 1002291

parent 91115a54
...@@ -683,6 +683,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz { ...@@ -683,6 +683,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
taskSubscribeBiz.subscribeTask(wxUserId,null,relSkillId,robotId); taskSubscribeBiz.subscribeTask(wxUserId,null,relSkillId,robotId);
}else if (2 == type){ }else if (2 == type){
pcloudGroupActivityBiz.processGroup(wxUserId,robotId,Long.valueOf(relSkillId.toString())); pcloudGroupActivityBiz.processGroup(wxUserId,robotId,Long.valueOf(relSkillId.toString()));
pcloudSkillBiz.sendResource(id,wxUserId,robotId,relSkillId);
}else if (3 == type){ }else if (3 == type){
pcloudSkillBiz.sendResource(id,wxUserId,robotId,relSkillId); pcloudSkillBiz.sendResource(id,wxUserId,robotId,relSkillId);
} }
......
...@@ -18,6 +18,7 @@ import com.pcloud.common.core.aspect.ParamLog; ...@@ -18,6 +18,7 @@ import com.pcloud.common.core.aspect.ParamLog;
import com.pcloud.common.page.PageBeanNew; import com.pcloud.common.page.PageBeanNew;
import com.pcloud.common.page.PageParam; import com.pcloud.common.page.PageParam;
import com.sdk.wxgroup.SendGroupInviteVO; import com.sdk.wxgroup.SendGroupInviteVO;
import com.sdk.wxgroup.SendPicMessageVO;
import com.sdk.wxgroup.WxGroupSDK; import com.sdk.wxgroup.WxGroupSDK;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -87,6 +88,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -87,6 +88,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
log.error("[processGroup] error 共读不存在"); log.error("[processGroup] error 共读不存在");
return; return;
} }
if (0 == byId.getJoinType()) {
GroupQrcodeBaseInfoVO groupQrcode = groupQrcodeBiz.getBaseById(byId.getBookGroupQrcodeId()); GroupQrcodeBaseInfoVO groupQrcode = groupQrcodeBiz.getBaseById(byId.getBookGroupQrcodeId());
if (Objects.isNull(groupQrcode)) { if (Objects.isNull(groupQrcode)) {
log.error("[processGroup] error 共读对应社群不存在"); log.error("[processGroup] error 共读对应社群不存在");
...@@ -100,6 +102,15 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -100,6 +102,15 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
WxGroupSDK.sendGroupInvite(vo); WxGroupSDK.sendGroupInvite(vo);
log.info("[processGroup] 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);
}
}
@Override @Override
public PageBeanNew<QueryGroupActivityResponseVO> queryGroupActivity(String name, Long proLabelId, Long purLabelId, Long depLabelId, Integer numPerPage, Integer currentPage) { public PageBeanNew<QueryGroupActivityResponseVO> queryGroupActivity(String name, Long proLabelId, Long purLabelId, Long depLabelId, Integer numPerPage, Integer currentPage) {
......
...@@ -390,7 +390,7 @@ public class PcloudSkillBizImpl implements PcloudSkillBiz { ...@@ -390,7 +390,7 @@ public class PcloudSkillBizImpl implements PcloudSkillBiz {
} else if(WelcomeReplyTypeEnum.RESOURCE.value.equals(type)) { } else if(WelcomeReplyTypeEnum.RESOURCE.value.equals(type)) {
SendFileVO sendFileVO = new SendFileVO(); SendFileVO sendFileVO = new SendFileVO();
sendFileVO.setFileUrl(reply.getResourceUrl()); sendFileVO.setFileUrl(reply.getResourceUrl());
sendFileVO.setFileName(reply.getResourceName()); sendFileVO.setFileName(reply.getContent().split(".")[0]);
sendFileVO.setIp(ip); sendFileVO.setIp(ip);
sendFileVO.setAltId(robotWxId); sendFileVO.setAltId(robotWxId);
sendFileVO.setWxId(userWxId); sendFileVO.setWxId(userWxId);
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
<select id="queryGroupActivity" resultType="com.pcloud.book.skill.facade.response.QueryGroupActivityResponseVO" parameterType="map" > <select id="queryGroupActivity" resultType="com.pcloud.book.skill.facade.response.QueryGroupActivityResponseVO" parameterType="map" >
SELECT SELECT
a.id, a.id,
a.NAME, a.`name`,
a.description, a.description as `desc`,
a.join_type AS joinType, a.join_type AS joinType,
a.group_pic AS groupPic, a.group_pic AS groupPic,
a.book_group_qrcode_id AS bookGroupQrcodeId, a.book_group_qrcode_id AS bookGroupQrcodeId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment