Commit 372f852b by 王祖波

普通商品分享校验服务是否到期

parent 5cc7bdc4
......@@ -63,16 +63,6 @@ public class InteractRecordMessageService {
public void dealRecord(InteractRecordMessageBO interactRecordMessageBO) {
log.info("【dealRecord】处理埋点事件 >> {}", JSON.toJSONString(interactRecordMessageBO));
// 普通商品分享校验服务是否到期
if (Objects.equals(interactRecordMessageBO.getBizType(), ShareBizType.GOODS.getCode())
&& (Objects.isNull(interactRecordMessageBO.getShareSource()) || Objects.equals(interactRecordMessageBO.getShareSource(), -1))) {
log.info("普通商品分享");
if (!enterpriseAdaptor.checkEnterpriseHasRights(interactRecordMessageBO.getEnterpriseId(), EnterpriseAdaptor.newRightCodeList)) {
log.info("企业 {} 没权限", interactRecordMessageBO.getEnterpriseId());
return;
}
}
// 查询多商品页面数据
Map<String, List<List<String>>> multipleMap = null;
if (StringUtils.isNotBlank(interactRecordMessageBO.getWxaLinkId())) {
......@@ -82,6 +72,19 @@ public class InteractRecordMessageService {
}
InteractRecordMessageContext context = InteractRecordMessageContext.create(interactRecordMessageBO);
log.info("业务类型:{}", context.getBizType());
// 普通商品分享校验服务是否到期
if (Objects.equals(context.getBizType(), ShareBizType.GOODS.getCode())
&& (Objects.isNull(interactRecordMessageBO.getShareSource()) || Objects.equals(interactRecordMessageBO.getShareSource(), -1))) {
log.info("普通商品分享");
if (!enterpriseAdaptor.checkEnterpriseHasRights(interactRecordMessageBO.getEnterpriseId(), EnterpriseAdaptor.newRightCodeList)) {
log.info("企业 {} 没权限", interactRecordMessageBO.getEnterpriseId());
return;
}
}
// 参数是否完整
// 根据businessId clerkId memberId materialId 构建唯一标识key
String recordKey = context.buildRecordKey();
......
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