临时接口,订单退款

This commit is contained in:
2023-05-31 13:59:27 +08:00
parent 0c1144d0e5
commit 922c0428b7
11 changed files with 112 additions and 6 deletions

View File

@@ -121,4 +121,26 @@ public class JumpController extends BaseController {
return response;
}
/**
* 临时订单退款
* http://localhost:8080/app-xcx-h5/tempOrderRefund
* @return
*/
@GetMapping("tempOrderRefund")
public RestApiResponse<?> tempOrderRefund() {
RestApiResponse<?> response = null;
try {
orderBasicInfoService.tempOrderRefund();
response = new RestApiResponse<>();
} catch (BusinessException e) {
logger.warn("临时订单退款接口 warn", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("临时订单退款接口 error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
}
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
return response;
}
}