瀏覽代碼

推送事件到119平台,增加日志输出

Wang-Xiao-Ran 1 年之前
父節點
當前提交
8d62f0da7c

+ 2 - 0
src/main/java/com/sooka/sponest/event/centereventteventcatalogue/controller/CentereventTEventcatalogueController.java

@@ -1,5 +1,6 @@
 package com.sooka.sponest.event.centereventteventcatalogue.controller;
 
+import com.alibaba.fastjson.JSON;
 import com.ruoyi.common.core.constant.HttpStatus;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.common.core.utils.SpringUtils;
@@ -402,6 +403,7 @@ public class CentereventTEventcatalogueController extends BaseController {
         List<String> pictures = fireEventVO.getEventPicture().stream().map(item -> item.substring(item.indexOf("group1"))).collect(Collectors.toList());
         fireEventVO.setPictureUrlList(pictures);
         R result = SpringUtils.getBean(RemoteExchangeService.class).receiveEventData(fireEventVO);
+        logger.info("事件接受参数:{}, 事件结果返回:{}", JSON.toJSONString(fireEventVO), JSON.toJSONString(result));
         if (200 == result.getCode()) {
             // log
             CentereventTFireLog log = new CentereventTFireLog();