Bladeren bron

Merge branch 'fix/snapshot_token' of Fengwo/hotline into release

xf 1 week geleden
bovenliggende
commit
d0f0ae39b4
2 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 5 2
      src/Hotline.Application/Identity/IdentityAppService.cs
  2. 1 1
      src/TianQue.Sdk/Models/ApiReponse.cs

+ 5 - 2
src/Hotline.Application/Identity/IdentityAppService.cs

@@ -354,8 +354,11 @@ public class IdentityAppService : IIdentityAppService, IScopeDependency
 
     public async Task<Dictionary<string, object>> RefreshTokenAsync(string openId, CancellationToken token)
     {
-        var thirdAccount = await _thirdAccountRepository.GetByOpenIdAsync(openId, token)
-            ?? throw UserFriendlyException.SameMessage("未找到用户信息");
+        var thirdAccount = await _thirdAccountRepository.GetByOpenIdAsync(openId, token);
+        if (thirdAccount is null)
+        {
+            throw new UserFriendlyException(403, "用户不存在");
+        }
 
         return await GetJwtToken(thirdAccount, token);
     }

+ 1 - 1
src/TianQue.Sdk/Models/ApiReponse.cs

@@ -43,5 +43,5 @@ public class AcceptInfoSuccessDto
     /// <summary>
     /// OrgId
     /// </summary>
-    public uint OrgId { get; set; }
+    public string OrgId { get; set; }
 }