1. 避免无登录的操作无法记录日志的情况

2. 短信登录可以不传递租户信息
This commit is contained in:
chenbowen
2025-12-25 10:46:45 +08:00
parent 89a047d28b
commit 09c726d51b
2 changed files with 2 additions and 1 deletions

View File

@@ -1944,7 +1944,7 @@ COMMENT ON TABLE system_oauth2_refresh_token IS 'OAuth2 刷新令牌';
CREATE TABLE system_operate_log (
id bigint NOT NULL PRIMARY KEY,
trace_id varchar(64) DEFAULT '' NULL,
user_id bigint NOT NULL,
user_id bigint NULL,
user_type smallint DEFAULT 0 NOT NULL,
type varchar(50) NOT NULL,
sub_type varchar(50) NOT NULL,

View File

@@ -143,6 +143,7 @@ public class AuthController {
@PostMapping("/sms-login")
@PermitAll
@TenantIgnore
@Operation(summary = "使用短信验证码登录")
public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) {
return success(authService.smsLogin(reqVO));