Commit 65240fb9 by jinxin

微信退款接口

parent 3e0212b2
...@@ -372,6 +372,8 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService { ...@@ -372,6 +372,8 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
if (wxEnterpriseDTO == null) { if (wxEnterpriseDTO == null) {
return ServiceResponse.failure("-9999", "微信企业不存在!!"); return ServiceResponse.failure("-9999", "微信企业不存在!!");
} }
//先申请微信退款,再取消企业微信订单
wxRefund(orderId);
String openCorpid = wxEnterpriseDTO.getOpenCorpid(); String openCorpid = wxEnterpriseDTO.getOpenCorpid();
String serviceCorpid = config.getCorpid(); String serviceCorpid = config.getCorpid();
ServiceResponse<QywxResponseDTO> response = qywxOrderApiService.cancelOrder(serviceCorpid, openCorpid, order.getQywxOrderId()); ServiceResponse<QywxResponseDTO> response = qywxOrderApiService.cancelOrder(serviceCorpid, openCorpid, order.getQywxOrderId());
...@@ -379,8 +381,6 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService { ...@@ -379,8 +381,6 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
if (response.isSuccess()){ if (response.isSuccess()){
//更新企业微信订单状态 //更新企业微信订单状态
updateLicenceOrderType(orderId, 2, order.getEnterpriseId(), order.getWxEnterpriseId(), order.getCreatorName(), 1); updateLicenceOrderType(orderId, 2, order.getEnterpriseId(), order.getWxEnterpriseId(), order.getCreatorName(), 1);
//微信退款
wxRefund(orderId);
return ServiceResponse.success(true); return ServiceResponse.success(true);
} }
return ServiceResponse.failure(response.getCode(),response.getMessage()); return ServiceResponse.failure(response.getCode(),response.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment