Ver Fonte

fix pay bug

wangming há 5 dias atrás
pai
commit
4a425f34c4

+ 1 - 1
yami-shop-api/src/main/java/com/yami/shop/api/controller/OrderRefundController.java

@@ -482,7 +482,7 @@ public class OrderRefundController {
         newOrderRefund.setApplyTime(new Date());
         newOrderRefund.setUpdateTime(new Date());
         newOrderRefund.setFreightAmount(order.getFreightAmount());
-        newOrderRefund.setOffsetPoints(order.getOffsetPoints());
+        newOrderRefund.setOffsetPoints(order.getOffsetPoints()==null?0:order.getOffsetPoints());
         OrderRefund orderRefund = orderRefundService.applyRefund(newOrderRefund);
         if (!orderRefundSkuList.isEmpty()){
             orderRefundSkuList.forEach(c->{