WechatPaymentService.java
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package cn.com.glsx.dj.access.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cn.com.glsx.dj.payment.remote.WechatPaymentRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatPaymentService.java
* @Description: 微信支付
* @author Alvin
* @date 2019年6月25日 下午5:21:39
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Component
public class WechatPaymentService {
private Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private WechatPaymentRemote wechatPaymentRemote;
/**
* 退款结果通知
* @return
* @param requestContent 请求内容
* @author Alvin
* @date 2019年6月25日 下午5:30:31
*/
public String refundNotify(String notifyXml){
logger.info("refund notify xml:{}", notifyXml);
RpcResponse<String> response = wechatPaymentRemote.refundNotify(notifyXml);
logger.info("refund notify response:{}", response);
return response.getResult();
}
}