wangqifan 3 سال پیش
والد
کامیت
b1ea304ac2

+ 1 - 1
src/main/java/com/izouma/nineth/listener/MintListener.java

@@ -16,7 +16,7 @@ import org.springframework.stereotype.Service;
         consumerGroup = "${general.mint-group}",
         topic = "${general.mint-topic}",
         consumeMode = ConsumeMode.ORDERLY)
-//@ConditionalOnProperty(value = "general.notify-server", havingValue = "false", matchIfMissing = true)
+@ConditionalOnProperty(value = "general.notify-server", havingValue = "false", matchIfMissing = true)
 public class MintListener implements RocketMQListener<Long> {
     private AssetMintService assetMintService;
 

+ 1 - 1
src/main/java/com/izouma/nineth/listener/OrderNotifyListener.java

@@ -17,7 +17,7 @@ import org.springframework.stereotype.Service;
         consumerGroup = "${general.order-notify-group}",
         topic = "${general.order-notify-topic}",
         consumeMode = ConsumeMode.ORDERLY)
-//@ConditionalOnProperty(value = "general.notify-server", havingValue = "true")
+@ConditionalOnProperty(value = "general.notify-server", havingValue = "false", matchIfMissing = true)
 public class OrderNotifyListener implements RocketMQListener<OrderNotifyEvent> {
     private OrderService orderService;
 

+ 1 - 1
src/main/resources/application.yaml

@@ -226,7 +226,7 @@ sandpay:
   sign-cert-path: classpath:cert/6888806044146.pfx
   sign-cert-pwd: 123456
   sand-cert-path: classpath:cert/sand.cer
-  notify-url: http://test.adcs.vip/sandpay/notify
+  notify-url: https://test.adcs.vip/sandpay/notify
 rocketmq:
   name-server: 47.96.38.242:9876
   producer: