Browse Source

add build script

x1ongzhu 7 năm trước cách đây
mục cha
commit
8cfb03cb46

+ 0 - 1
src/main/java/com/izouma/awesomeadmin/service/impl/VideoNotifyServiceImpl.java

@@ -14,7 +14,6 @@ public class VideoNotifyServiceImpl implements VideoNotifyService {
 
     @Override
     public void onConnect(VideoNotifyParam param, HttpServletRequest request, HttpServletResponse response) {
-        logger.info("onConnect");
     }
 
     @Override

+ 5 - 0
src/main/java/com/izouma/awesomeadmin/web/VideoNotifyController.java

@@ -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);