|
|
@@ -945,6 +945,17 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
log.error("APP直播模板解析失败:" + e);
|
|
|
}
|
|
|
break;
|
|
|
+ //app文本
|
|
|
+ case "15":
|
|
|
+ String txtAppGroup = StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText();
|
|
|
+ st.setValue(st.getValue().replaceAll("#客服称呼#", txtAppGroup).replaceAll("#销售称呼#", txtAppGroup));
|
|
|
+ try {
|
|
|
+ replaceContent(st.getContentType(), st.getValue(), st::setValue, words);
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ sopLogs.setAppSendStatus(0);
|
|
|
+ break;
|
|
|
//群公告
|
|
|
case "11":
|
|
|
sopLogs.setSendType(21); // 设置为群公告类型
|
|
|
@@ -2426,15 +2437,17 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
break;
|
|
|
case "15":
|
|
|
//app文本
|
|
|
+ String txtApp = StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText();
|
|
|
+ st.setValue(st.getValue()
|
|
|
+ .replaceAll("#客服称呼#", txtApp)
|
|
|
+ .replaceAll("#销售称呼#", txtApp)
|
|
|
+ .replaceAll("#客户称呼#", contact == null || StringUtil.strIsNullOrEmpty(contact.getStageStatus()) || "0".equals(contact.getStageStatus()) ? "同学" : contact.getStageStatus()));
|
|
|
+ sopLogs.setAppSendStatus(0);
|
|
|
try {
|
|
|
- createVoiceUrl(st, companyUserId);
|
|
|
- if (qwUser.getCompanyUserId() != null) {
|
|
|
- createVoiceUrlToIm(st, String.valueOf(qwUser.getCompanyUserId()));
|
|
|
- }
|
|
|
+ replaceContent(st.getContentType(), st.getValue(), st::setValue, words);
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
- sopLogs.setAppSendStatus(0);
|
|
|
break;
|
|
|
case "16":
|
|
|
//app语音
|