mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 18:22:15 +08:00
fix:优化传递token bug
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.dev33.satoken.context.dubbo.filter;
|
||||
|
||||
import cn.dev33.satoken.exception.SaTokenException;
|
||||
import org.apache.dubbo.common.constants.CommonConstants;
|
||||
import org.apache.dubbo.common.extension.Activate;
|
||||
import org.apache.dubbo.rpc.Filter;
|
||||
@@ -36,6 +37,8 @@ public class SaTokenDubboConsumerFilter implements Filter {
|
||||
String tokenValueNotCut = null;
|
||||
try {
|
||||
tokenValueNotCut = StpUtil.getTokenValueNotCut();
|
||||
} catch (SaTokenException exception){
|
||||
|
||||
} finally {
|
||||
RpcContext.getContext().setAttachment(SaTokenConsts.JUST_CREATED, tokenValueNotCut);
|
||||
}
|
||||
|
Reference in New Issue
Block a user