From 0b0f53bf409ae2d14f41313dad41b70b5ad94e6d Mon Sep 17 00:00:00 2001 From: liyuxin <1579178744@qq.com> Date: Wed, 4 Sep 2024 21:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=8E=E9=9B=A8=E6=AC=A3=209.4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8E=A5=E5=8F=A3=2021:04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/muyu/market/server/controller/AliPayController.java | 2 ++ .../muyu/market/server/controller/SelectIDCardController.java | 2 +- .../main/java/com/muyu/market/server/util/SelectIDCardUtil.java | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cloud-market2-server/src/main/java/com/muyu/market/server/controller/AliPayController.java b/cloud-market2-server/src/main/java/com/muyu/market/server/controller/AliPayController.java index 5b2b2e4..bf89358 100644 --- a/cloud-market2-server/src/main/java/com/muyu/market/server/controller/AliPayController.java +++ b/cloud-market2-server/src/main/java/com/muyu/market/server/controller/AliPayController.java @@ -6,6 +6,7 @@ import com.muyu.common.core.domain.Result; import com.muyu.data.AliPay; import com.muyu.market.server.config.AliPayConfig; +import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.springframework.transaction.annotation.Transactional; @@ -25,6 +26,7 @@ import java.util.UUID; @RestController @RequestMapping("alipay") @Transactional(rollbackFor = Exception.class) +@Tag(name = "调用第三方支付控制层",description = "调用第三方支付控制层") public class AliPayController { @Resource diff --git a/cloud-market2-server/src/main/java/com/muyu/market/server/controller/SelectIDCardController.java b/cloud-market2-server/src/main/java/com/muyu/market/server/controller/SelectIDCardController.java index f717ef1..8e720ae 100644 --- a/cloud-market2-server/src/main/java/com/muyu/market/server/controller/SelectIDCardController.java +++ b/cloud-market2-server/src/main/java/com/muyu/market/server/controller/SelectIDCardController.java @@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; + @Slf4j @RestController @RequestMapping("/idcard") @@ -33,7 +34,6 @@ public class SelectIDCardController { return Result.error(e); } - } diff --git a/cloud-market2-server/src/main/java/com/muyu/market/server/util/SelectIDCardUtil.java b/cloud-market2-server/src/main/java/com/muyu/market/server/util/SelectIDCardUtil.java index 7949e10..77e5a9e 100644 --- a/cloud-market2-server/src/main/java/com/muyu/market/server/util/SelectIDCardUtil.java +++ b/cloud-market2-server/src/main/java/com/muyu/market/server/util/SelectIDCardUtil.java @@ -13,6 +13,7 @@ import java.util.stream.Collectors; public class SelectIDCardUtil { public static Result main(String name, String idcard) throws Exception { + String apiKey = "cdd821cebf9cb018406845ca9b37bd62"; String apiUrl = "http://op.juhe.cn/idcard/query";