Explorar el Código

测试服生成假token

xiongzhu hace 4 años
padre
commit
6bcb5ab007
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/java/com/izouma/nineth/service/NFTService.java

+ 1 - 1
src/main/java/com/izouma/nineth/service/NFTService.java

@@ -88,7 +88,7 @@ public class NFTService {
     @Retryable(maxAttempts = 10, backoff = @Backoff(delay = 5000), value = BusinessException.class)
     @Retryable(maxAttempts = 10, backoff = @Backoff(delay = 5000), value = BusinessException.class)
     public synchronized NFT createToken(String toAccount, String tokenId) throws Exception {
     public synchronized NFT createToken(String toAccount, String tokenId) throws Exception {
         log.info("开始执行EVM合约mint, toAccount: {}, tokenId: {}", toAccount, tokenId);
         log.info("开始执行EVM合约mint, toAccount: {}, tokenId: {}", toAccount, tokenId);
-        if (Arrays.asList(env.getActiveProfiles()).contains("test")) {
+        if (Arrays.asList(env.getActiveProfiles()).contains("notifytest")) {
             NFT nft = new NFT("1", tokenId, new BigInteger("1"), new BigInteger("1"));
             NFT nft = new NFT("1", tokenId, new BigInteger("1"), new BigInteger("1"));
             log.info("测试服生成假token {}", tokenId);
             log.info("测试服生成假token {}", tokenId);
             return nft;
             return nft;