|
@@ -71,9 +71,9 @@ namespace Hotline.YbEnterprise.Sdk
|
|
|
var res = await ExecuteAsync<string,EnterpriseServiceResponse>(path, Method.Post,"", rest, cancellationToken);
|
|
|
|
|
|
if (res is null)
|
|
|
- throw new UserFriendlyException("获取token请求失败");
|
|
|
+ throw new UserFriendlyException("获取token请求失败 authorization:" + authorization+ " ,path:"+ path+" , res:"+res.ToString());
|
|
|
if (!res.success)
|
|
|
- throw new UserFriendlyException("获取token请求失败");
|
|
|
+ throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + res.ToString());
|
|
|
return res.data;
|
|
|
}
|
|
|
public async Task<TResponse> ExecuteAsync<TRequest, TResponse>(string path, Method httpMethod, TRequest request, RestRequest restRequest = null,
|