|
@@ -176,7 +176,6 @@ public class SysLoginController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 用户 openid登录
|
|
|
*
|
|
|
*/
|
|
|
@PostMapping("/login/ttcode")
|
|
@@ -209,6 +208,29 @@ public class SysLoginController
|
|
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @PostMapping("/login/ttcodeTest")
|
|
|
+ @ApiOperation("字节小程序授权码模式登录(测试,固定uionid)")
|
|
|
+ public Response<TokenDTO> loginByTtAuthorizationCodeTest(){
|
|
|
+
|
|
|
+
|
|
|
+ ServletUtils.getRequest().setAttribute("third","douyin");
|
|
|
+ ServletUtils.getRequest().setAttribute("headImage","");
|
|
|
+ ServletUtils.getRequest().setAttribute("nickName","");
|
|
|
+ ServletUtils.getRequest().setAttribute("openid","a99b2d43-0609-4273-8d5f-ae3fdc0dec35");
|
|
|
+
|
|
|
+ String token = loginService.login("0e412d99-1186-40c2-a004-213f06f75df9",null, StudentLoginTypeEnum.AUTHORIZATION_CODE_TT_LOGIN.getCode());
|
|
|
+ TokenDTO tokenDTO = new TokenDTO();
|
|
|
+ tokenDTO.setToken(token);
|
|
|
+ tokenDTO.setThirdResult(null);
|
|
|
+ return Response.success(tokenDTO) ;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|