|
@@ -826,11 +826,11 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
CourseConfig config = JSON.parseObject(json, CourseConfig.class);
|
|
|
|
|
|
if (config == null) {
|
|
|
- return R.error().put("msg","课程默认配置为空,请联系管理员");
|
|
|
+ return R.error("课程默认配置为空,请联系管理员");
|
|
|
}
|
|
|
|
|
|
if (StringUtil.strIsNullOrEmpty(param.getCorpId())){
|
|
|
- return R.error().put("msg","企业编号为空,不能创建一键群发");
|
|
|
+ return R.error("企业编号为空,不能创建一键群发");
|
|
|
}
|
|
|
|
|
|
QwCompany qwCompany = iQwCompanyService.getQwCompanyByRedis(param.getCorpId());
|
|
@@ -1073,21 +1073,21 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
String linkByMiniApp = createLinkByMiniApp(st, param.getCorpId(), dataTime, param.getCourseId(), param.getVideoId(),
|
|
|
String.valueOf(qwUser.getId()), companyUserId, companyId, item.getExternalId(), config);
|
|
|
|
|
|
- if (StringUtil.strIsNullOrEmpty(config.getMiniprogramAppid())){
|
|
|
-
|
|
|
- log.error("配置中无小程序id,采用默认的");
|
|
|
-
|
|
|
- st.setMiniprogramAppid("wxc84c6f789ba7f176");
|
|
|
- }else {
|
|
|
- st.setMiniprogramAppid(config.getMiniprogramAppid());
|
|
|
- }
|
|
|
-// if (StringUtil.strIsNullOrEmpty(qwCompany.getMiniAppId())){
|
|
|
-// log.error("企业未配置小程序-"+param.getCorpId());
|
|
|
+// if (StringUtil.strIsNullOrEmpty(config.getMiniprogramAppid())){
|
|
|
+//
|
|
|
+// log.error("配置中无小程序id,采用默认的");
|
|
|
//
|
|
|
+// st.setMiniprogramAppid("wxc84c6f789ba7f176");
|
|
|
// }else {
|
|
|
-// //置换各自的小程序
|
|
|
-// st.setMiniprogramAppid(qwCompany.getMiniAppId());
|
|
|
+// st.setMiniprogramAppid(config.getMiniprogramAppid());
|
|
|
// }
|
|
|
+ if (StringUtil.strIsNullOrEmpty(qwCompany.getMiniAppId())){
|
|
|
+ log.error("企业未配置小程序-"+param.getCorpId());
|
|
|
+
|
|
|
+ }else {
|
|
|
+ //置换各自的小程序
|
|
|
+ st.setMiniprogramAppid(qwCompany.getMiniAppId());
|
|
|
+ }
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
break;
|
|
|
default:
|