|
|
@@ -6,6 +6,9 @@ import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
+import com.fs.config.cloud.CloudHostProper;
|
|
|
+import com.fs.hisStore.enums.CompanyEnum;
|
|
|
+import com.fs.hisStore.enums.LiveEnum;
|
|
|
import com.fs.live.domain.LiveVideo;
|
|
|
import com.fs.live.service.ILiveVideoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -26,7 +29,8 @@ public class LiveVideoController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private ILiveVideoService liveVideoService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private CloudHostProper cloudHostProper;
|
|
|
/**
|
|
|
* 查询直播视频列表
|
|
|
*/
|
|
|
@@ -89,6 +93,10 @@ public class LiveVideoController extends BaseController
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody LiveVideo liveVideo)
|
|
|
{
|
|
|
+ if (LiveEnum.contains(cloudHostProper.getCompanyName())) {
|
|
|
+ liveVideo.setVideoUrl(liveVideo.getLineOne());
|
|
|
+ liveVideo.setFinishStatus(1);
|
|
|
+ }
|
|
|
return toAjax(liveVideoService.insertLiveVideo(liveVideo));
|
|
|
}
|
|
|
|