【修改】 学生端登录参数更改

This commit is contained in:
RENWEIBING\letre
2025-04-27 22:24:41 +08:00
parent 37c6cbd951
commit e790be81f9
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ public class AuthController {
@GetMapping("/login_config")
@PermitAll
@Operation(summary = "学生端判断学生的登录方式")
public CommonResult<ConfigDO> getLoginConfigDO(@RequestBody @Valid AuthLoginReqVO reqVO) {
public CommonResult<ConfigDO> getLoginConfigDO() {
// 在判断学生的登录方式
ConfigDO config = configService.getConfigByKey("student_login");
return success(config);

View File

@@ -142,7 +142,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
String type = config.getValue();
if (type.equals("1")) {
// 考生账号+姓名登录
user = authenticateByNickName(reqVO.getUsername(), reqVO.getPassword());
user = authenticateByNickName(reqVO.getUsername(), reqVO.getNickname());
} else if (type.equals("2")) {
// 考生账号+密码登录
user = authenticate(reqVO.getUsername(), reqVO.getPassword());