init
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.ruoyi.xq.manager;
|
||||
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.xq.domain.AuthOrder;
|
||||
import com.ruoyi.xq.domain.VipOrder;
|
||||
import com.ruoyi.xq.domain.VipPrice;
|
||||
import com.ruoyi.xq.domain.WxTransOrder;
|
||||
@@ -71,6 +72,20 @@ public class PayManager {
|
||||
dto.setPrice(wxTransOrder.getWxPrice());
|
||||
dto.setOrderNo(wxTransOrder.getOrderNo());
|
||||
break;
|
||||
case AUTH_ORDER:
|
||||
AuthOrder authOrder = authOrderService.getByOrderNo(orderNo);
|
||||
if(authOrder == null){
|
||||
throw new ServiceException("订单不存在,请重新下单支付");
|
||||
}
|
||||
if(!PayStatusEnum.READY_PAY.getCode().equals(authOrder.getPayStatus())){
|
||||
throw new ServiceException("订单状态有误,请重新下单支付");
|
||||
}
|
||||
dto = new PayOrderInfoDTO();
|
||||
dto.setBody(authOrder.getBody());
|
||||
dto.setSubject(authOrder.getBody());
|
||||
dto.setPrice(authOrder.getPrice());
|
||||
dto.setOrderNo(authOrder.getOrderNo());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user