提交 2d8edc30 作者: xiaowang

过滤退款接口

上级 89773abe
......@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
......@@ -64,6 +65,14 @@ public class WechatPayController extends BaseController {
return wechatPayService.applyRefund(applyRefundVO);
}
@ApiIgnore
@ApiOperation(value = "feign-申请退款")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@PostMapping("feignApplyRefund")
public ResultBody feignApplyRefund(@RequestBody ApplyRefundVO applyRefundVO) {
return wechatPayService.applyRefund(applyRefundVO);
}
@ApiOperation(value = "退款异步通知")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@PostMapping("refundCallback")
......
......@@ -40,7 +40,8 @@ public class AuthSignatureFilter implements AuthFilter {
*/
private static final String[] IGNORE_URLS = {"/payment/swagger-resources"
, "/payment/v2/api-docs", "/payment/repocash/walletUsers", "/payment/doc.html",
"/payment/actuator/health/readiness", "/payment/wechat/payCallback", "/payment/wechat/refundCallback"};
"/payment/actuator/health/readiness", "/payment/wechat/payCallback",
"/payment/wechat/refundCallback", "/payment/wechat/feignApplyRefund"};
/*无需加密狗无需登录白名单*/
private static final String[] USE_KEY = {"/oms/account/loginByUsbKey"};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论