TRX před 1 rokem
rodič
revize
86a6c73d7a

+ 7 - 3
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/org/TestController.java

@@ -3,6 +3,7 @@ package com.zhongshu.card.server.core.controller.org;
 import com.github.microservice.core.util.bytes.BytesUtil;
 import com.github.microservice.net.ResultContent;
 import com.zhongshu.card.server.core.service.TestService;
+import com.zhongshu.card.server.core.service.openAPI.OpenAPIRegisterService;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import lombok.extern.slf4j.Slf4j;
@@ -23,18 +24,21 @@ public class TestController {
     @Autowired
     private TestService testService;
 
+    @Autowired
+    OpenAPIRegisterService openAPIRegisterService;
+
     @Operation(summary = "测试接口", description = "测试接口")
     @RequestMapping(value = "text", method = {RequestMethod.GET})
     public ResultContent text() {
 
-//        openAPIRegisterService.initRegisterPAIS();
+        openAPIRegisterService.initRegisterPAIS();
 
-        try{
+        try {
             byte[] bins = BytesUtil.longToBin(Long.parseLong("2152525002"), 4);
 //            var ret = reverse(bins);
             String str = BytesUtil.binToHex(bins);
             log.info("str; {}", str.toUpperCase());
-        }catch (Exception e){
+        } catch (Exception e) {
             e.printStackTrace();
         }
         return this.testService.text();