提交 9a3d838d 编写于 作者: misaka's avatar misaka

1

上级 213c2d9b
...@@ -53,7 +53,7 @@ public interface IBZUAAFeignClient ...@@ -53,7 +53,7 @@ public interface IBZUAAFeignClient
<#if sys.getSaaSMode()==4> <#if sys.getSaaSMode()==4>
@PostMapping(value = "/uaa/loginbyusername") @PostMapping(value = "/uaa/loginbyusername")
AuthenticationUser loginByUsername(@RequestHeader(name = "srfsystem") String system,@RequestHeader(name = "srforgid") String orgid ,@RequestBody String username); AuthenticationUser loginByUsername(@RequestHeader(name = "srfsystemid") String system,@RequestHeader(name = "srforgid") String orgid ,@RequestBody String username);
<#else> <#else>
@PostMapping(value = "/uaa/loginbyusername") @PostMapping(value = "/uaa/loginbyusername")
AuthenticationUser loginByUsername(@RequestBody String username); AuthenticationUser loginByUsername(@RequestBody String username);
......
...@@ -74,7 +74,7 @@ public class AppController { ...@@ -74,7 +74,7 @@ public class AppController {
public void logout() { public void logout() {
if(AuthenticationUser.getAuthenticationUser()!=null){ if(AuthenticationUser.getAuthenticationUser()!=null){
<#if sys.getSaaSMode()==4> <#if sys.getSaaSMode()==4>
userDetailsService.resetByUsername("${sys.getCodeName()}",AuthenticationUser.getAuthenticationUser().getOrgid(),AuthenticationUser.getAuthenticationUser().getUsername()); userDetailsService.resetByUsername(AuthenticationUser.getAuthenticationUser().getSrfsystemid(),AuthenticationUser.getAuthenticationUser().getOrgid(),AuthenticationUser.getAuthenticationUser().getUsername());
<#else> <#else>
userDetailsService.resetByUsername(AuthenticationUser.getAuthenticationUser().getUsername()); userDetailsService.resetByUsername(AuthenticationUser.getAuthenticationUser().getUsername());
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册