feat:添加获取it地址

This commit is contained in:
XIE7654
2025-08-14 10:09:51 +08:00
parent a88f272c19
commit 3cf4410a8a
6 changed files with 63 additions and 4 deletions

View File

@@ -296,6 +296,7 @@ class LoginLog(CoreModel):
result = models.IntegerField(choices=LoginResult.choices, default=LoginResult.SUCCESS, db_comment='登录结果')
user_ip = models.CharField(max_length=50, db_comment='用户 IP')
user_agent = models.CharField(max_length=512, db_comment='浏览器 UA')
location = models.CharField(max_length=200, db_comment='<IP> 地理位置', blank=True, default='')
class Meta:
db_table = 'system_login_log'