mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 汇付退款
This commit is contained in:
@@ -1251,6 +1251,11 @@ public class OrderService {
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 汇付支付 支付回调
|
||||
* @param request
|
||||
* @throws Exception
|
||||
*/
|
||||
public void adapayCallback(HttpServletRequest request) throws Exception {
|
||||
//验签请参data
|
||||
String data = request.getParameter("data");
|
||||
@@ -1278,7 +1283,6 @@ public class OrderService {
|
||||
BigDecimal amount = adapayCallbackRecord.getPayAmt();
|
||||
if (StringUtils.equals(type, ScenarioEnum.ORDER.getValue())) { // 1-订单支付
|
||||
// 支付订单成功
|
||||
// orderCode = (String) map.get("orderCode");
|
||||
PayOrderSuccessCallbackDTO callbackDTO = PayOrderSuccessCallbackDTO.builder()
|
||||
.orderCode(orderCode)
|
||||
.payAmount(amount)
|
||||
@@ -1297,7 +1301,6 @@ public class OrderService {
|
||||
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
|
||||
} else if (StringUtils.equals(type, ScenarioEnum.BALANCE.getValue())) { // 2-充值余额
|
||||
// 充值余额成功
|
||||
// memberId = (String) map.get("memberId");
|
||||
UpdateMemberBalanceDTO dto = new UpdateMemberBalanceDTO();
|
||||
dto.setMemberId(memberId);
|
||||
dto.setType(MemberWalletEnum.TYPE_IN.getValue());
|
||||
@@ -1321,6 +1324,11 @@ public class OrderService {
|
||||
memberTransactionRecordService.insertSelective(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 汇付支付 退款回调
|
||||
* @param request
|
||||
* @throws Exception
|
||||
*/
|
||||
public void adapayRefundCallback(HttpServletRequest request) throws Exception {
|
||||
//验签请参data
|
||||
String data = request.getParameter("data");
|
||||
|
||||
Reference in New Issue
Block a user