fix: 🐛 ip归属地查询接口地址更新 (#168)

Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
2024-08-02 09:26:37 +08:00
committed by GitHub
parent e00c30c961
commit 4733adede5
9 changed files with 60 additions and 63 deletions

View File

@@ -19,6 +19,8 @@ public record CreateLoginLogReq : Sys_LoginLog, IRegister
{
var body = s.Detail.ResponseBody.ToObject<RestfulInfo<LoginRsp>>();
ContextUserToken userToken = null;
// ReSharper disable once InvertIf
if (body.Data?.AccessToken != null) {
try {
userToken = ContextUserToken.Create(body.Data.AccessToken);