处理用友如果异常方法增加seata标签报错问题

This commit is contained in:
dxc
2021-03-29 16:56:33 +08:00
parent 77ec13c8ae
commit b6948f5338

View File

@ -399,8 +399,10 @@ public class ProjectExceptionServiceImpl extends BaseServiceImpl<ProjectExceptio
failRequest.setFailCause(dictProject.getDicName());
log.debug("访问失败接口"+ JsonUtils.objectToJson(failRequest));
//调用接口
String xid = RootContext.getXID();
RootContext.unbind();
BaseResponse baseResponse = mallPurpApi.projInvitationFail(failRequest);
RootContext.bind(xid);
if(!baseResponse.isSuccess()){
ProjectExceptionEnum.FRAME_EXCEPTION_PROJECT_EXCEPTION_INVITATION_FAIL_ERROR.customValidName(baseResponse.getMessage(),!baseResponse.isSuccess());
}