|
@@ -67,7 +67,8 @@ public class WxApiService {
|
|
|
public ResultVo<WxPayOrder> createPayOrder(WxPayOrder order) {
|
|
|
WxPayOrder existOrder = getExistOrder(order);
|
|
|
if (null != existOrder) {
|
|
|
- if (existOrder.getTradeState() == Transaction.TradeStateEnum.SUCCESS) {
|
|
|
+ if (existOrder.getTradeState() == Transaction.TradeStateEnum.SUCCESS
|
|
|
+ && existOrder.getCashpayAmt().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR,
|
|
|
"您已支付过一笔相同金额的订单,请勿重复支付。");
|
|
|
}
|