mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 01:50:17 +08:00
汇付回调
This commit is contained in:
@@ -348,7 +348,7 @@ public class PayController extends BaseController {
|
||||
* <a href="https://api.jsowellcloud.com/uniapp/pay/adapayCallback">...</a>
|
||||
*/
|
||||
@PostMapping("/adapayCallback")
|
||||
public void adapayCallback(HttpServletRequest request) {
|
||||
public RestApiResponse<?> adapayCallback(HttpServletRequest request) {
|
||||
try {
|
||||
orderService.adapayCallback(request);
|
||||
// String type = request.getParameter("type");
|
||||
@@ -356,6 +356,7 @@ public class PayController extends BaseController {
|
||||
} catch (Exception e) {
|
||||
logger.error("1汇付支付回调失败 error", e);
|
||||
}
|
||||
return new RestApiResponse<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.jsowell.common.constant.CacheConstants;
|
||||
import com.jsowell.common.core.redis.RedisCache;
|
||||
@@ -26,7 +27,11 @@ public class AdapayCallbackRecordServiceImpl implements AdapayCallbackRecordServ
|
||||
|
||||
@Override
|
||||
public void saveAdapayCallbackRecord(AdapayCallbackRecord callbackRecord) {
|
||||
adapayCallbackRecordMapper.insert(callbackRecord);
|
||||
try {
|
||||
adapayCallbackRecordMapper.insert(callbackRecord);
|
||||
} catch (Exception e) {
|
||||
log.error("saveAdapayCallbackRecord:{}, error", JSON.toJSONString(callbackRecord), e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3204,7 +3204,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
public void retryRefundOrder(String orderCode) throws BaseAdaPayException {
|
||||
// 查询订单信息
|
||||
OrderBasicInfo orderBasicInfo = getOrderInfoByOrderCode(orderCode);
|
||||
retryRefundOrder(orderBasicInfo);
|
||||
if (orderBasicInfo != null) {
|
||||
retryRefundOrder(orderBasicInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user