Commit 6c19f98f by 周晓航

修改调用失败提示语

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 4ffb40f8
......@@ -69,7 +69,7 @@ public class WeChatLiveMsgHandle {
if (weChatBaseResponse == null) {
// 调用失败
return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "调用sdk失败");
return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "错误码" + ResponseResult.SYSTEM_BUSINESS_ERROR.getCode() + ",创建视频号订单异常,请稍后再试。");
}
if ("0".equals(weChatBaseResponse.getErrcode())) {
// 调用成功
......@@ -85,7 +85,7 @@ public class WeChatLiveMsgHandle {
if (weChatBaseResponse == null) {
// 调用失败
return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "调用sdk失败");
return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "错误码" + ResponseResult.SYSTEM_BUSINESS_ERROR.getCode() + ",创建视频号订单异常,请稍后再试。");
}
if ("0".equals(weChatBaseResponse.getErrcode())) {
// 调用成功
......@@ -93,11 +93,11 @@ public class WeChatLiveMsgHandle {
WeChatReportVO weChatReportVO = new WeChatReportVO(requestVO, data);
return ResponseUtil.success(weChatReportVO);
}
return ResponseUtil.error(agResponse.getErrcode(), agResponse.getErrmsg());
return ResponseUtil.error(agResponse.getErrcode(), "错误码" + agResponse.getErrmsg() + ",创建视频号订单异常,请稍后再试。");
}
// 全部失败 直接抛出异常
return ResponseUtil.error(weChatBaseResponse.getErrcode(), weChatBaseResponse.getErrmsg());
return ResponseUtil.error(weChatBaseResponse.getErrcode(), "错误码" + weChatBaseResponse.getErrmsg() + ",创建视频号订单异常,请稍后再试。");
}
private String refreshAccessToken(String wxAppId, String partnerId) {
......
......@@ -449,8 +449,8 @@ public class SellCouponOrderServiceImpl implements OrderFactoryService {
if (StringUtils.isNotBlank(requestVo.getScene()) && CreateOrderSceneEnum.verifySceneOrder.contains(requestVo.getScene())) {
BaseResponse<WeChatReportVO> baseResponse = weChatLiveMsgHandle.reportOrder(createPrepayRequestDto, prepayOrder, requestVo.getScene(), requestVo.getProductPath());
if (ResponseResult.SUCCESS.getCode().equals(baseResponse.getCode())) {
WeChatReportVO result = baseResponse.getResult();
prepayOrder.setWeChatReportVO(result);
WeChatReportVO weChatReportVO = baseResponse.getResult();
prepayOrder.setWeChatReportVO(weChatReportVO);
return ResponseUtil.success(prepayOrder);
}else {
return baseResponse;
......
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