From eed89d185cc54187353b03966296498b8495c442 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 06 十一月 2019 15:29:16 +0800
Subject: [PATCH] 商城订单相关bug修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java
index e2099b1..4a5e0be 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java
@@ -165,7 +165,8 @@
 		BanLiShopOrder order = banLiShopOrderService.selectByPrimaryKeyForUpdate(orderId);
 		if (order == null)
 			throw new BanLiShopOrderException(1, "璁㈠崟涓嶅瓨鍦�");
-		if (order.getState() != BanLiShopOrder.STATE_REJECT)
+		if (order.getState() == BanLiShopOrder.STATE_REJECT_REFUND_FAIL
+				|| order.getState() == BanLiShopOrder.STATE_REJECT_REFUND_SUCCESS)
 			throw new BanLiShopOrderException(2, "璁㈠崟鏈鎷掔粷/璁㈠崟宸查��娆�");
 
 		BanLiShopOrder update = new BanLiShopOrder();
@@ -205,7 +206,7 @@
 					BanLiShopOrderMQMsg msg = new BanLiShopOrderMQMsg(order.getId(), order.getUid());
 					Message message = new Message(MQTopicName.TOPIC_ORDER.name(),
 							OrderTopicTagEnum.banLiShopOrderRefund.name(), new Gson().toJson(msg).getBytes());
-					message.setStartDeliverTime(System.currentTimeMillis() + 1000 * 60 * 60 * 24L);// 寤舵椂24灏忔椂閫氱煡妫�娴嬪井淇¢��娆剧姸鎬�
+					message.setStartDeliverTime(System.currentTimeMillis() + 1000 * 60 *5L);// 寤舵椂24灏忔椂閫氱煡妫�娴嬪井淇¢��娆剧姸鎬�
 					SendResult result = producer.send(message);
 					if (result == null) {
 						throw new BanLiShopOrderException(8, "娑堟伅鍙戦�佸け璐�");

--
Gitblit v1.8.0