Browse Source

fix:修复工厂数据工厂

master
pref_mail@163.com 9 months ago
parent
commit
2e4a39b498
  1. 4
      blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/LocalServerLoginAccountsInterceptor.java

4
blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/LocalServerLoginAccountsInterceptor.java

@ -42,11 +42,13 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws CustomerException {
log.info(">>> 执行拦截器");
try {
JSONObject data =bladeRedis.get(CacheNames.LOCAL_SERVER_USER+"shujutongbu");
CustomHttpServletRequestWrapper wrappedRequest = new CustomHttpServletRequestWrapper(request);
if(Objects.isNull(data)){
String url = "http://"+ LauncherConstant.loginAddr(AppConstant.DEV_CODE)+"/blade-auth/oauth/token";
String url = "http://"+ LauncherConstant.loginAddr(AppConstant.TEST_CODE)+"/blade-auth/oauth/token";
cn.hutool.http.HttpRequest urlRequest = HttpRequest.post(url);
urlRequest.header("Authorization", "Basic c2FiZXI6c2FiZXJfc2VjcmV0");
urlRequest.header("Tenant-Id", "627683");

Loading…
Cancel
Save