修复订单关闭传递参数字段与文档描述不一致

This commit is contained in:
陈泉 2022-04-28 11:53:36 +08:00
parent cea60b1698
commit 83031d2f24

View File

@ -58,8 +58,8 @@ public class CloseOrderController extends ApiController {
//获取参数 & 验签
ClosePayOrderRQ rq = getRQByWithMchSign(ClosePayOrderRQ.class);
if(StringUtils.isEmpty(rq.getPayOrderId())){
throw new BizException("payOrderId不能为空");
if(StringUtils.isAllEmpty(rq.getMchOrderNo(), rq.getPayOrderId())){
throw new BizException("mchOrderNo 和 payOrderId 不能同时为空");
}
PayOrder payOrder = payOrderService.queryMchOrder(rq.getMchNo(), rq.getPayOrderId(), rq.getMchOrderNo());