TRX 1 éve
szülő
commit
7042601f6f

+ 3 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/domain/payment/RequestInfo.java

@@ -25,6 +25,9 @@ public class RequestInfo extends SuperMain {
     @Schema(description = "请求参数")
     private Object param;
 
+    @Schema(description = "api信息")
+    private Object apiParam;
+
     @Schema(description = "校园参数")
     private Object response;
 

+ 7 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/httpRequest/apiConf/APIResponseModel.java

@@ -16,14 +16,21 @@ import org.apache.commons.lang3.StringUtils;
 @AllArgsConstructor
 @NoArgsConstructor
 public class APIResponseModel {
+    @Schema(description = "访问是否失败")
     private boolean failed;
+    @Schema(description = "访问是否成功标记")
     private boolean success;
+    @Schema(description = "消息")
     private String msg;
+    @Schema(description = "状态")
     private String state;
+    @Schema(description = "响应内容")
     private String content;
 
+    @Schema(description = "请求API定义")
     private ApiConfParam param;
 
+    @Schema(description = "请求参数")
     private Object data;
 
     @Schema(description = "请求耗时:毫秒")

+ 5 - 5
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/mqtt/MqttServiceImpl.java

@@ -71,11 +71,11 @@ public class MqttServiceImpl extends SuperService {
 //        str = str.replaceAll("\\t", "");
 //        str = str.replaceAll("\\n", "");
 
-        APIResponseModel resultContent = apiRequestService.sendIotCenterAPI(
-                IotCenterAPIConfig.sendMessage, param);
-        if (resultContent.isSuccess()) {
-
-        }
+//        APIResponseModel resultContent = apiRequestService.sendIotCenterAPI(
+//                IotCenterAPIConfig.sendMessage, param);
+//        if (resultContent.isSuccess()) {
+//
+//        }
 //        log.info("是否成功: {} {}", resultContent.isSuccess(), resultContent.getContent());
         return ResultContent.buildSuccess(msg);
     }

+ 1 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/payment/RequestInfoService.java

@@ -52,6 +52,7 @@ public class RequestInfoService {
     public boolean addIotRequestInfo(Object param, APIResponseModel response) {
         RequestInfo requestInfo = new RequestInfo();
         requestInfo.setParam(param);
+        requestInfo.setApiParam(response.getParam());
         requestInfo.setResponse(response);
         requestInfo.setIsSuccess(response.isSuccess());
         requestInfo.setMsg(response.getMsg());