mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
汇付支付 执行退款
This commit is contained in:
@@ -330,10 +330,10 @@ public class PayController extends BaseController {
|
|||||||
orderService.adapayRefund(dto);
|
orderService.adapayRefund(dto);
|
||||||
response = new RestApiResponse<>();
|
response = new RestApiResponse<>();
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
logger.warn("微信退款接口 warn", e);
|
logger.warn("汇付支付退款接口 warn", e);
|
||||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("微信退款接口 error", e);
|
logger.error("汇付支付退款接口 error", e);
|
||||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package com.jsowell.pile.service.impl;
|
|||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.alibaba.fastjson2.TypeReference;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
@@ -1759,11 +1758,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
refundParams.put("refund_order_no", SnowflakeIdWorker.getSnowflakeId());
|
refundParams.put("refund_order_no", SnowflakeIdWorker.getSnowflakeId());
|
||||||
Map<String, Object> response = Refund.create(id, refundParams);
|
Map<String, Object> response = Refund.create(id, refundParams);
|
||||||
logger.info("创建退款对象:{}", JSON.toJSONString(response));
|
logger.info("创建退款对象:{}", JSON.toJSONString(response));
|
||||||
if (response != null && !response.isEmpty()) {
|
|
||||||
JSONObject jsonObject = JSONObject.parseObject(response.get("expend").toString());
|
|
||||||
JSONObject pay_info = jsonObject.getJSONObject("pay_info");
|
|
||||||
Map<String, Object> resultMap = JSONObject.parseObject(pay_info.toJSONString(), new TypeReference<Map<String, Object>>() {});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user