From 1aa6695dec2bf2de8695337fc64d99efc9ca6473 Mon Sep 17 00:00:00 2001 From: chengpengxiang <15503679582@163.com> Date: Sun, 18 Aug 2024 19:22:41 +0800 Subject: [PATCH 1/2] fix: redPacket fix arb graph Url --- .../com/dl/officialsite/redpacket/RedPacketController.java | 6 ++++++ .../com/dl/officialsite/redpacket/RedPacketService.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java index 5015978..23e0d72 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java @@ -18,6 +18,7 @@ import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.util.ObjectUtils; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -126,4 +127,9 @@ public Predicate toPredicate(Root root, CriteriaQuery criteriaQuer return BaseResponse.successWithData(redPacketRepository.findAll(queryParam, pageable)); } + @GetMapping("/test") + public void test() { + redPacketService.updateRedpacketStatus(); + } + } diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java index 667c995..9219727 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java @@ -143,7 +143,7 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException { // break; case Constants.CHAIN_ID_ARBITRUM: //arbitrum request = new HttpPost( - "https://indexer.bigdevenergy.link/40a09e1/v1/graphql\n"); + "https://indexer.bigdevenergy.link/40a09e1/v1/graphql"); break; // case Constants.CHAIN_ID_ZKSYNC: //zksync // request = new HttpPost( From 4c71f61b42de6e0b2cf9901136499eaa5321e626 Mon Sep 17 00:00:00 2001 From: chengpengxiang <15503679582@163.com> Date: Sun, 18 Aug 2024 19:23:20 +0800 Subject: [PATCH 2/2] fix: redPacket delete test url --- .../com/dl/officialsite/redpacket/RedPacketController.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java index 23e0d72..5015978 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketController.java @@ -18,7 +18,6 @@ import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.util.ObjectUtils; -import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -127,9 +126,4 @@ public Predicate toPredicate(Root root, CriteriaQuery criteriaQuer return BaseResponse.successWithData(redPacketRepository.findAll(queryParam, pageable)); } - @GetMapping("/test") - public void test() { - redPacketService.updateRedpacketStatus(); - } - }