|
|
@@ -565,6 +565,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
}
|
|
|
QwSopCourseFinishTempSetting setting = new QwSopCourseFinishTempSetting();
|
|
|
List<QwSopCourseFinishTempSetting.Setting> list = JSONArray.parseArray(param.getSetting(), QwSopCourseFinishTempSetting.Setting.class);
|
|
|
+ QwCompany qwCompany = iQwCompanyService.getQwCompanyByRedis(param.getCorpId());
|
|
|
for (QwSopCourseFinishTempSetting.Setting st : list) {
|
|
|
|
|
|
//过滤违禁词
|
|
|
@@ -635,6 +636,15 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
case "7":
|
|
|
createVoiceUrl(st, companyUserId, qwSop);
|
|
|
break;
|
|
|
+ case "14":
|
|
|
+ //授权红包
|
|
|
+ String appId = qwCompany.getMiniAppId();
|
|
|
+ linkByMiniApp = createActivityLinkByMiniApp(st,sopLogs, qwUser.getCorpId(), new Date(), param.getCourseId(), param.getVideoId(),
|
|
|
+ String.valueOf(qwUser.getId()), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), config,groupUser.getChatId());
|
|
|
+ st.setMiniprogramAppid(appId);
|
|
|
+ st.setMiniprogramTitle("手机授权");
|
|
|
+ st.setMiniprogramPage(linkByMiniApp);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
setting.setSetting(list);
|
|
|
@@ -670,6 +680,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
QwSopCourseFinishTempSetting setting = new QwSopCourseFinishTempSetting();
|
|
|
|
|
|
List<QwSopCourseFinishTempSetting.Setting> list = JSONArray.parseArray(param.getSetting(), QwSopCourseFinishTempSetting.Setting.class);
|
|
|
+ QwCompany qwCompany = iQwCompanyService.getQwCompanyByRedis(param.getCorpId());
|
|
|
|
|
|
for (QwSopCourseFinishTempSetting.Setting st : list) {
|
|
|
|
|
|
@@ -740,6 +751,15 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
createVoiceUrl(st, String.valueOf(qwUser.getCompanyUserId()), qwSop);
|
|
|
}
|
|
|
break;
|
|
|
+ case "14":
|
|
|
+ //授权红包
|
|
|
+ String appId = qwCompany.getMiniAppId();
|
|
|
+ linkByMiniApp = createActivityLinkByMiniApp(st,sopLogs, qwUser.getCorpId(), new Date(), param.getCourseId(), param.getVideoId(),
|
|
|
+ String.valueOf(qwUser.getId()), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), config,groupChat.getChatId());
|
|
|
+ st.setMiniprogramAppid(appId);
|
|
|
+ st.setMiniprogramTitle("手机授权");
|
|
|
+ st.setMiniprogramPage(linkByMiniApp);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
setting.setSetting(list);
|
|
|
@@ -1825,7 +1845,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
st.setExternalUserId(sopLogs.getExternalUserId());
|
|
|
st.setChatId(chatId);
|
|
|
|
|
|
- String json = configService.selectConfigByKey("luckyBag.config");
|
|
|
+ String json = configService.selectConfigByKey("phoneRedPacket.config");
|
|
|
Map<String, Object> luckyBagConfig = JSON.parseObject(json, Map.class);
|
|
|
Object miniprogramPicUrl = luckyBagConfig.get("miniprogramPicUrl");
|
|
|
if(miniprogramPicUrl != null){
|