Commit 29c39755 authored by 赵啸非's avatar 赵啸非

用户列表更新

parent 4a389b27
...@@ -86,6 +86,7 @@ public interface ISiteFeign extends IFeign { ...@@ -86,6 +86,7 @@ public interface ISiteFeign extends IFeign {
class SiteFeignFallbackFactory implements FallbackFactory<ISiteFeign> { class SiteFeignFallbackFactory implements FallbackFactory<ISiteFeign> {
@Override @Override
public ISiteFeign create(Throwable t) { public ISiteFeign create(Throwable t) {
log.error("异常:",t);
return new ISiteFeign() { return new ISiteFeign() {
@Override @Override
public String list(SitePdu sitePdu) { public String list(SitePdu sitePdu) {
......
...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
* @author zxfei * @author zxfei
* @date 2022-07-06 * @date 2022-07-06
*/ */
@FeignClient(name = "portal-manager", path = "/zwfw", fallback = UserFeignFallbackFactory.class) @FeignClient(name = "base-manager", path = "/base", fallback = UserFeignFallbackFactory.class)
public interface IUserFeign extends IFeign { public interface IUserFeign extends IFeign {
......
...@@ -58,7 +58,7 @@ public class SitestatController extends BaseCRUDJsonBodyMappingController<Sitest ...@@ -58,7 +58,7 @@ public class SitestatController extends BaseCRUDJsonBodyMappingController<Sitest
String loginResp = userFeign.portalLogin(userPdu); String loginResp = userFeign.portalLogin(userPdu);
JSONObject loginRespJson = JSON.parseObject(loginResp); JSONObject loginRespJson = JSON.parseObject(loginResp);
String token = loginRespJson.getJSONObject("data").getString("token"); String token = loginRespJson.getJSONObject("data").getString("token");
log.info("token:{}", token);
// String token = authTokenService.getToken(request); // String token = authTokenService.getToken(request);
String resp = siteFeign.siteTree(token); String resp = siteFeign.siteTree(token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment