|
@@ -27,6 +27,7 @@ import com.cyksj.service.corp.WxCorpOps;
|
|
|
import com.cyksj.service.corp.msg.CorpEventActionService;
|
|
import com.cyksj.service.corp.msg.CorpEventActionService;
|
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
import com.cyksj.service.market.MarketFrontService;
|
|
import com.cyksj.service.market.MarketFrontService;
|
|
|
|
|
+import com.cyksj.service.oceanengine.OceanengineService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
|
import com.cyksj.service.sys.SysConfigService;
|
|
import com.cyksj.service.sys.SysConfigService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -81,6 +82,8 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
|
|
|
|
|
private final CouponCommonService couponCommonService;
|
|
private final CouponCommonService couponCommonService;
|
|
|
|
|
|
|
|
|
|
+ private final OceanengineService oceanengineService;
|
|
|
|
|
+
|
|
|
private static final String DEFAULT_MSG = "您好,欢迎加入银河录像局";
|
|
private static final String DEFAULT_MSG = "您好,欢迎加入银河录像局";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -101,6 +104,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
if (corpUserInfo == null) {
|
|
if (corpUserInfo == null) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
THREAD_POOL.execute(()->{
|
|
THREAD_POOL.execute(()->{
|
|
|
//保存企微用户
|
|
//保存企微用户
|
|
|
CorpUser corpUser = saveOrUpdateCorpUser(message, corpUserInfo);
|
|
CorpUser corpUser = saveOrUpdateCorpUser(message, corpUserInfo);
|
|
@@ -127,6 +131,14 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
.forEach(followedUser -> updateUserFollowRelation(followedUser, corpUserInfo.getExternalUserId(), wxCorpApp.getId()));
|
|
.forEach(followedUser -> updateUserFollowRelation(followedUser, corpUserInfo.getExternalUserId(), wxCorpApp.getId()));
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ //如果是该客服添加用户,代表通过巨量平台 添加用户.执行广告回传.
|
|
|
|
|
+ if(userId.equals("yami")){
|
|
|
|
|
+ THREAD_POOL.execute(()->{
|
|
|
|
|
+ oceanengineService.monitorAddCorpPost();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//发送自定义欢迎语
|
|
//发送自定义欢迎语
|
|
|
//sendDesignWelcomeMsg(corpId, welcomeCode, userId, corpUserInfo.getCorpName());
|
|
//sendDesignWelcomeMsg(corpId, welcomeCode, userId, corpUserInfo.getCorpName());
|
|
|
return null;
|
|
return null;
|