From 5b1baee9f43cb311ec8ca8ef17f195445b00bac0 Mon Sep 17 00:00:00 2001 From: yn147 <2270338776@qq.com> Date: 星期四, 11 五月 2023 14:08:59 +0800 Subject: [PATCH] 邮箱登录 --- src/main/java/com/qxueyou/scc/controller/VideoLiveController.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/controller/VideoLiveController.java b/src/main/java/com/qxueyou/scc/controller/VideoLiveController.java index 7388141..f18bac9 100644 --- a/src/main/java/com/qxueyou/scc/controller/VideoLiveController.java +++ b/src/main/java/com/qxueyou/scc/controller/VideoLiveController.java @@ -8,6 +8,7 @@ import com.alibaba.fastjson.JSONObject; import com.hankcs.hanlp.corpus.tag.Nature; import com.qxueyou.scc.sdk.MTCloud; +import io.swagger.models.auth.In; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -122,13 +123,14 @@ options.put("robotNumber", 1); options.put("robotType", 1); options.put("pptDisplay", 1); + options.put("modetype", 6); //灏唋ong绫诲瀷杞崲涓篠tring绫诲瀷 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT+00:00")); String startTime1 = simpleDateFormat.format(new Date(startTime)); String endTime1 = simpleDateFormat.format(new Date(endTime)); //璋冪敤绗笁鏂圭洿鎾帴鍙� - String s = client.courseAdd(name, "16624662432", startTime1, endTime1, ClientUtils.getUserName(), "222", options); + String s = client.courseAdd(name, ClientUtils.getUserId(), startTime1, endTime1, ClientUtils.getUserName(), "222", options); //json杞崲鎷垮埌courseId JSONObject jsonObject = JSON.parseObject(s); JSONObject data = jsonObject.getJSONObject("data"); @@ -149,7 +151,7 @@ HashMap<Object,Object> options = new HashMap<Object, Object>(); options.put("ssl", false); - String res = client.courseLogin("16624662432", MTCloud.ACCOUNT_TYPE_THIRD, options); + String res = client.courseLogin(ClientUtils.getUserId(),MTCloud.ACCOUNT_TYPE_THIRD, options); System.out.println(res); JSONObject jsonObject = JSON.parseObject(res); JSONObject data = jsonObject.getJSONObject("data"); @@ -157,6 +159,15 @@ return new Result(true,"寮�鍚垚鍔�",protocol); } + @ApiOperation(value = "鍦ㄧ嚎鏃堕暱") + @GetMapping(value = "onlineCommunication") + public Result onlineCommunication(String courseId,Integer page, Integer size) throws Exception { + MTCloud client = new MTCloud(); + HashMap<Object,Object> options = new HashMap<Object, Object>(); + options.put("ssl", false); + String res = client.courseVisitorList("3360573",10,1,options); + return new Result(true,"寮�鍚垚鍔�",res); + } /** * 鏌ヨ鐩存挱璇︽儏 * @@ -248,8 +259,8 @@ */ @ApiOperation(value = "鍒犻櫎鍒涘缓鐨勭洿鎾�") @PostMapping(value = "delete") - public Result delete(String videoLiveIds) { - return liveService.delete(videoLiveIds.split(",")); + public Result delete(String videoLiveIds,String courseIds) throws Exception { + return liveService.delete(videoLiveIds.split(","),courseIds.split(",")); } -- Gitblit v1.8.0