feat 调整支付成功接口返回的格式
This commit is contained in:
parent
1923c00b2d
commit
566c236df8
|
|
@ -141,11 +141,13 @@ public class PayServiceImpl implements IPayService {
|
|||
if (StringUtils.isNotNull(rechargeOrder)) {
|
||||
orderExist = true;
|
||||
vo.setPayStatus(rechargeOrder.getPayStatus());
|
||||
vo.setPayWay(PaymentEnum.getPayWayMsg(rechargeOrder.getPayWay()));
|
||||
vo.setOrderId(rechargeOrder.getId());
|
||||
vo.setOrderSn(rechargeOrder.getSn());
|
||||
vo.setOrderAmount(rechargeOrder.getOrderAmount());
|
||||
vo.setPayTime(StringUtils.isNotEmpty(vo.getPayTime()) ? TimeUtils.timestampToDate(vo.getPayTime()) : "");
|
||||
JSONObject order = new JSONObject();
|
||||
order.put("order_amount", rechargeOrder.getOrderAmount());
|
||||
order.put("order_sn", rechargeOrder.getSn());
|
||||
order.put("pay_time", StringUtils.isNotNull(rechargeOrder.getPayTime()) ? TimeUtils.timestampToDate(rechargeOrder.getPayTime()) : "");
|
||||
order.put("pay_way", PaymentEnum.getPayWayMsg(rechargeOrder.getPayWay()));
|
||||
vo.setOrder(order);
|
||||
}
|
||||
break;
|
||||
case "order":
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.mdd.front.vo.pay;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.models.auth.In;
|
||||
|
|
@ -14,22 +15,24 @@ public class PayStatusVo implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "订单信息")
|
||||
private JSONObject order;
|
||||
@ApiModelProperty(value = "支付状态: [0=待支付, 1=已支付]")
|
||||
private Integer payStatus;
|
||||
|
||||
@ApiModelProperty(value = "支付状态: [0=待支付, 1=已支付]")
|
||||
private String payWay;
|
||||
// @ApiModelProperty(value = "支付状态: [0=待支付, 1=已支付]")
|
||||
// private String payWay;
|
||||
|
||||
@ApiModelProperty(value = "支付时间")
|
||||
private String payTime;
|
||||
// @ApiModelProperty(value = "支付时间")
|
||||
// private String payTime;
|
||||
|
||||
@ApiModelProperty(value = "订单ID")
|
||||
private Integer orderId;
|
||||
|
||||
@ApiModelProperty(value = "订单编号")
|
||||
private String orderSn;
|
||||
// @ApiModelProperty(value = "订单编号")
|
||||
// private String orderSn;
|
||||
|
||||
@ApiModelProperty(value = "订单金额")
|
||||
private BigDecimal orderAmount;
|
||||
// @ApiModelProperty(value = "订单金额")
|
||||
// private BigDecimal orderAmount;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue