From b0c195d4628b9086fb6e3f16759d15cf49100a50 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 10 Nov 2021 16:17:59 +0800
Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop

---
 gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java b/gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
index fd5d6e7..dce33d3 100644
--- a/gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
+++ b/gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
@@ -240,6 +240,7 @@
                 JhyOrder order = jhyOrderMapper.selectByPrimaryKey(confirmDto.getOrderId());
                 AccountInfo jhyAccount = accountMapper.selectAccountInfoByUserId(order.getJhyId());
                 BigDecimal collectScore = StrUtil.isNotBlank(jhyAccount.getCollectScore()) ? new BigDecimal(jhyAccount.getCollectScore()) : BigDecimal.ZERO;
+                log.info("===={}======{}====", collectScore, totalScore);
                 if (totalScore.compareTo(collectScore) > 0) {
                     throw new RestException(-3, "剩余积分不足");
                 }
@@ -282,6 +283,8 @@
                 distribService.distribRecord(order.getId(), order.getUserId());
                 // 推荐返利
                 distribService.inviteAddOrderScore(order.getUserId(), order.getId().toString());
+            } catch (RestException e) {
+                throw new RestException(e.getMessage());
             } catch (Exception e) {
                 log.error("异常", e);
                 throw new RestException("支付失败");

--
Gitblit v1.9.1