bihuisong 1 年之前
父節點
當前提交
43a51152a0

+ 5 - 2
src/main/java/com/sooka/sponest/dataexchange/exchange/controller/ExchangeController.java

@@ -76,6 +76,7 @@ public class ExchangeController {
         log.info("dataExchangeEntity:{}",dataExchangeEntity);
         List<String> pictureList = new ArrayList<>();
         if (StringUtils.isNotEmpty(SecurityUtils.getToken()) && !CollectionUtils.isEmpty(dataExchangeEntity.getEventPicture())) {
+            log.info("token:{}",StringUtils.isNotEmpty(SecurityUtils.getToken()));
             for (String picture : dataExchangeEntity.getEventPicture()) {
                 if (!"image".equals(FilePrefixUtils.getUrlSuffix(picture))) {
                     log.error("事件图片必须为图片格式---{}", dataExchangeEntity);
@@ -88,8 +89,9 @@ public class ExchangeController {
             }
             dataExchangeEntity.setPictureUrlList(pictureList);
             R<?> result = remoteEventBaseService.insert3rdSystemEvent(dataExchangeEntity);
+            log.info("insert3rdSystemEvent:{}",result);
             if (result.getCode() == 200) {
-                return R.ok("推送成功");
+                return R.ok(null,"推送成功");
             } else {
                 return R.fail(result.getMsg());
             }
@@ -113,7 +115,8 @@ public class ExchangeController {
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("", dataExchangeEntity);
         try {
-            RestUtil.post(url, jsonObject);
+            JSONObject result = RestUtil.post(url, jsonObject);
+            log.info("远程调用119:{}",result);
         } catch (Exception e) {
             log.info("远程调用119报错");
         }