fix():修复forest请求naocsApi接口因为路径参数的问题

master
WeiRan 2024-08-09 14:02:37 +08:00
parent 57fee081b0
commit 44f83fcb0a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class NacosNamespaceInterceptor<T> implements Interceptor<T> {
@Override
public boolean beforeExecute(ForestRequest req) {
// log.info("invoke Simple beforeExecute");
if (StringUtils.isNotEmpty(namespaceId)){
if (!StringUtils.isNotEmpty(namespaceId)){
String reqNamespaceId = Convert.utf8Str(req.getQuery("namespaceId"));
if (reqNamespaceId==null){
log.warn("本次请求nacos的namespaceId未携带已添加[{}]",namespaceId);