|
|
@@ -2,6 +2,8 @@ package com.izouma.awesomeadmin.web;
|
|
|
|
|
|
import com.izouma.awesomeadmin.dto.VideoNotifyParam;
|
|
|
import com.izouma.awesomeadmin.service.VideoNotifyService;
|
|
|
+import com.izouma.awesomeadmin.service.impl.PowerInfoServiceImpl;
|
|
|
+import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -13,11 +15,14 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
@Controller
|
|
|
@RequestMapping("/videoNotify")
|
|
|
public class VideoNotifyController {
|
|
|
+ private static Logger logger = Logger.getLogger(VideoNotifyController.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private VideoNotifyService videoNotifyService;
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.POST)
|
|
|
public void videoNotify(VideoNotifyParam param, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ logger.info(param);
|
|
|
switch (param.getCall()) {
|
|
|
case "connect":
|
|
|
videoNotifyService.onConnect(param, request, response);
|