mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
fix bug
This commit is contained in:
parent
ea0d1d709d
commit
8fa763f7d6
@ -47,8 +47,8 @@ public class SeataHandlerInterceptor implements HandlerInterceptor {
|
|||||||
@Override
|
@Override
|
||||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response,
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response,
|
||||||
Object handler) {
|
Object handler) {
|
||||||
Object xid_status = request.getAttribute(BIND_XID);
|
Object xidStatus = request.getAttribute(BIND_XID);
|
||||||
if (null == xid_status || !(boolean)xid_status) {
|
if (null == xidStatus || !(boolean)xidStatus) {
|
||||||
String xid = RootContext.getXID();
|
String xid = RootContext.getXID();
|
||||||
String rpcXid = request.getHeader(RootContext.KEY_XID);
|
String rpcXid = request.getHeader(RootContext.KEY_XID);
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
@ -76,8 +76,8 @@ public class SeataHandlerInterceptor implements HandlerInterceptor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object xid_status = request.getAttribute(UNBIND_XID);
|
Object xidStatus = request.getAttribute(UNBIND_XID);
|
||||||
if (null == xid_status || !(boolean)xid_status) {
|
if (null == xidStatus || !(boolean)xidStatus) {
|
||||||
String unbindXid = RootContext.unbind();
|
String unbindXid = RootContext.unbind();
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("unbind {} from RootContext", unbindXid);
|
log.debug("unbind {} from RootContext", unbindXid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user