|
@@ -21,14 +21,7 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
|
|
@Override
|
|
@Override
|
|
public RemoteUserService create(Throwable throwable)
|
|
public RemoteUserService create(Throwable throwable)
|
|
{
|
|
{
|
|
- log.error("用户服务调用失败:{}", throwable.getMessage());
|
|
|
|
- return new RemoteUserService()
|
|
|
|
- {
|
|
|
|
- @Override
|
|
|
|
- public R<LoginUser> getUserInfo(String username)
|
|
|
|
- {
|
|
|
|
- return R.fail("获取用户失败:" + throwable.getMessage());
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
|
|
+
|
|
|
|
+ return null;
|
|
}
|
|
}
|
|
}
|
|
}
|