Skip to content

Commit

Permalink
Merge pull request #275 from cheng521521/main
Browse files Browse the repository at this point in the history
fix: replace redpacket graph url for op and arb
  • Loading branch information
cheng521521 authored Jul 30, 2024
2 parents 341af13 + a658e67 commit 63dd21c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.xxl.job.core.context.XxlJobHelper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import com.xxl.job.core.context.XxlJobHelper;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
Expand All @@ -21,9 +21,7 @@
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
Expand Down Expand Up @@ -147,7 +145,7 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException {
switch (chainId) {
case Constants.CHAIN_ID_OP: // op
request = new HttpPost(
"https://subgraph.satsuma-prod.com/f440a1fb5a7f/caodalong--672935/dloptimismredpacket/api");
"http://production_site:8300/subgraphs/name/redpacket_optimism");
break;
// case Constants.CHAIN_ID_SEPOLIA: //sepolia
// request = new HttpPost(
Expand All @@ -159,7 +157,7 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException {
// break;
case Constants.CHAIN_ID_ARBITRUM: //arbitrum
request = new HttpPost(
"https://subgraph.satsuma-prod.com/f440a1fb5a7f/caodalong--672935/dlarbitrumredpacket/api");
"http://production_site:8400/subgraphs/name/redpacket_arbitrum");
break;
// case Constants.CHAIN_ID_ZKSYNC: //zksync
// request = new HttpPost(
Expand Down

0 comments on commit 63dd21c

Please sign in to comment.