Joburgess 4 anni fa
parent
commit
467e38d788

+ 1 - 6
mec-teacher/src/main/java/com/ym/mec/teacher/controller/SoundController.java

@@ -31,7 +31,7 @@ import java.util.Objects;
  * @Date 2021/5/19 0019
  */
 @Api(tags = "音频服务")
-//@RequestMapping("sound")
+@RequestMapping("sound")
 @RestController
 public class SoundController extends BaseController {
 
@@ -39,11 +39,6 @@ public class SoundController extends BaseController {
 
     @Autowired
     private SoundService soundService;
-    @Autowired
-    private SysUserFeignService sysUserFeignService;
-    @Lazy
-    @Autowired
-    private SimpMessagingTemplate template;
 
     @ApiOperation(value = "评分")
     @PostMapping("compare")

+ 0 - 3
mec-teacher/src/main/java/com/ym/mec/teacher/handler/WebSocketHandler.java

@@ -1,9 +1,7 @@
 package com.ym.mec.teacher.handler;
 
-import com.ym.mec.auth.api.client.SysUserFeignService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.web.socket.*;
 import org.springframework.web.socket.handler.AbstractWebSocketHandler;
@@ -43,7 +41,6 @@ public class WebSocketHandler extends AbstractWebSocketHandler {
     @Override
     protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
         super.handleTextMessage(session, message);
-        session.sendMessage(message);
     }
 
     @Override