田爽 1 year ago
parent
commit
fc05d6d222
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Hotline.YbEnterprise.Sdk/EnterpriseService.cs

+ 2 - 2
src/Hotline.YbEnterprise.Sdk/EnterpriseService.cs

@@ -107,9 +107,9 @@ namespace Hotline.YbEnterprise.Sdk
 				 res = (EnterpriseServiceResponse)JsonConvert.DeserializeObject(strResult)!;
 			}
 			if (res is null)
-                throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + res.ToString());
+                throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + strResult);
             if (!res.success)
-                throw new UserFriendlyException("获取token请求失败  authorization:" + authorization + " ,path:" + path + " , res:" + System.Text.Json.JsonSerializer.Serialize(res));
+                throw new UserFriendlyException("获取token请求失败  authorization2:" + authorization + " ,path:" + path + " , res:" + System.Text.Json.JsonSerializer.Serialize(res));
             return res.data;
         }
         public async Task<TResponse> ExecuteAsync<TRequest, TResponse>(string path, Method httpMethod, TRequest request, RestRequest restRequest = null,