|
@@ -1,5 +1,6 @@
|
|
|
package com.fs.app.controller;
|
|
package com.fs.app.controller;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
@@ -27,6 +28,7 @@ import com.fs.hisStore.enums.SysConfigEnum;
|
|
|
import com.fs.qw.domain.QwUser;
|
|
import com.fs.qw.domain.QwUser;
|
|
|
import com.fs.qw.service.IQwExternalContactService;
|
|
import com.fs.qw.service.IQwExternalContactService;
|
|
|
import com.fs.qw.service.IQwUserService;
|
|
import com.fs.qw.service.IQwUserService;
|
|
|
|
|
+import com.fs.system.service.ISysConfigService;
|
|
|
import com.fs.voice.utils.StringUtil;
|
|
import com.fs.voice.utils.StringUtil;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
@@ -59,6 +61,9 @@ public class FsUserCourseVideoController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ConfigUtil configUtil;
|
|
private ConfigUtil configUtil;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ISysConfigService configService;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@ApiOperation("课程视频详情")
|
|
@ApiOperation("课程视频详情")
|
|
|
@GetMapping(value = "/videoDetails")
|
|
@GetMapping(value = "/videoDetails")
|
|
@@ -123,11 +128,19 @@ public class FsUserCourseVideoController {
|
|
|
if (StringUtil.strIsNullOrEmpty(param.getCorpId())){
|
|
if (StringUtil.strIsNullOrEmpty(param.getCorpId())){
|
|
|
return R.error("企业id不能为空");
|
|
return R.error("企业id不能为空");
|
|
|
}
|
|
}
|
|
|
- JSONObject jsonObject = configUtil.generateConfigByKey(SysConfigEnum.COURSE_CONFIG.getKey());
|
|
|
|
|
- if (jsonObject!= null && jsonObject.getString("roomLinkAllow")!= null && Boolean.parseBoolean(jsonObject.getString("roomLinkAllow"))){
|
|
|
|
|
|
|
+
|
|
|
|
|
+ String json = configService.selectConfigByKey("course.config");
|
|
|
|
|
+ CourseConfig config = JSON.parseObject(json, CourseConfig.class);
|
|
|
|
|
+
|
|
|
|
|
+ if (config != null && config.getRoomLinkAllow() != null && config.getRoomLinkAllow()) {
|
|
|
return R.error("创建群链接已禁止");
|
|
return R.error("创建群链接已禁止");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// JSONObject jsonObject = configUtil.generateConfigByKey(SysConfigEnum.COURSE_CONFIG.getKey());
|
|
|
|
|
+// if (jsonObject!= null && jsonObject.getString("roomLinkAllow")!= null && Boolean.parseBoolean(jsonObject.getString("roomLinkAllow"))){
|
|
|
|
|
+// return R.error("创建群链接已禁止");
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
return fsUserCourseVideoService.createRoomMiniLink(param);
|
|
return fsUserCourseVideoService.createRoomMiniLink(param);
|
|
|
}
|
|
}
|
|
|
|
|
|