提交 6db036f6 作者: 沈振路

客服消息发送适配“番茄小程序”

上级 d97624f7
...@@ -704,11 +704,14 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -704,11 +704,14 @@ public class CustomerServiceCommonAsyncComponent {
// 判断如果是番茄小程序的话,处理参数 // 判断如果是番茄小程序的话,处理参数
if (CustomerCommonConstant.STORE_NAME_TOMATO.equals(authInfoVo.getStoreType()) && CUSTOMER_TYPE_VALUE_MINI_PROGRAM.equals(referralEntity.getCustomerMsgType())) { if (CustomerCommonConstant.STORE_NAME_TOMATO.equals(authInfoVo.getStoreType()) && CUSTOMER_TYPE_VALUE_MINI_PROGRAM.equals(referralEntity.getCustomerMsgType())) {
// 番茄小程序 // 番茄小程序
if (CustomerCommonConstant.ACTIVITY_NEWS_TYPE.equals(referralEntity.getNewsType())) { if (ACTIVITY_NEWS_TYPE.equals(referralEntity.getNewsType())) {
// 活动使用公众号本身的分销商Id // 活动使用公众号本身的分销商Id
referralEntity.setAccountId(authInfoVo.getAccountId()); referralEntity.setAccountId(authInfoVo.getAccountId());
} else { } else {
referralEntity.setAccountId(authInfoVo.getExpandDistributorId()); referralEntity.setAccountId(authInfoVo.getExpandDistributorId());
if (BOOK_NEWS_TYPE.equals(referralEntity.getNewsType())) {
referralEntity.setMediaSource("2");
}
} }
} }
// LOCAL_LOG.info("获取链接, 参数: {}", referralEntity); // LOCAL_LOG.info("获取链接, 参数: {}", referralEntity);
......
...@@ -244,6 +244,9 @@ public class ReferralEntity implements Serializable { ...@@ -244,6 +244,9 @@ public class ReferralEntity implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private String accountName; private String accountName;
@TableField(exist = false)
private String mediaSource;
public static final String COL_ID = "id"; public static final String COL_ID = "id";
public static final String COL_ACCOUNT_ID = "account_id"; public static final String COL_ACCOUNT_ID = "account_id";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论