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,18 +88,28 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -87,18 +88,28 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
log.error("[processGroup] error 共读不存在"); log.error("[processGroup] error 共读不存在");
return; return;
} }
GroupQrcodeBaseInfoVO groupQrcode = groupQrcodeBiz.getBaseById(byId.getBookGroupQrcodeId()); if (0 == byId.getJoinType()) {
if (Objects.isNull(groupQrcode)) { GroupQrcodeBaseInfoVO groupQrcode = groupQrcodeBiz.getBaseById(byId.getBookGroupQrcodeId());
log.error("[processGroup] error 共读对应社群不存在"); if (Objects.isNull(groupQrcode)) {
return; 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 @Override
......
...@@ -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