|
@@ -234,8 +234,11 @@ public class BuyOrderService {
|
|
|
if (item == null){
|
|
|
throw new ZSKKException(ErrorConstant.PARAM_ERROR);
|
|
|
}
|
|
|
-
|
|
|
BuyOrder order = this.queryBuyOrder(item.getBid());
|
|
|
+ if (!order.getPayStatus().equals(PAY_STATUS_PAYED)){
|
|
|
+ throw new ZSKKException(ErrorConstant.PARAM_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
String refundid = order.getOrderid() + "_" + item.getId();
|
|
|
userCenterService.refund(order, item, refundid);
|
|
|
|