Commit 21bb66f3 by shuhu.hou@freemud.cn

订单号为空,退款成功接口直接返回error

parent 48a47d5d
......@@ -599,6 +599,10 @@ public class OrderServiceImpl implements Orderservice {
@Override
public String refundNotifyCallback(RefundNotifyCallbackRequestVo requestVo) {
String trackingNo = LogTreadLocal.getTrackingNo();
if (StringUtils.isEmpty(requestVo.getTransId())) {
//订单号不能为空
return refundFaileMessage("transId is can not empty");
}
Integer refundStatus = requestVo.getRefundStatus();
if (!Objects.equals(refundStatus, ResponseCodeConstant.RESPONSE_SUCCESS)) {
//只有退款成功更新状态.其他情况不处理
......
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