|
@@ -46,7 +46,7 @@ namespace Hotline.YbEnterprise.Sdk
|
|
|
var path = _config.AddressUrl + "platform/12345/selectEnterpriseList";
|
|
|
var rest = new RestRequest(path, Method.Post);
|
|
|
rest.AddHeader("content-type", "application/json");
|
|
|
- rest.AddHeader("Blade-Auth", "application/json");
|
|
|
+ rest.AddHeader("Blade-Auth", token.TokenType + " " + token.AccessToken);
|
|
|
var res = await ExecuteAsync<EnterpriseListRequest, EnterpriseListResponse>(path, Method.Post, request, rest, cancellationToken);
|
|
|
return res == null? null: res.data;
|
|
|
}
|
|
@@ -97,7 +97,7 @@ namespace Hotline.YbEnterprise.Sdk
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
|
- throw new HttpRequestException($"智能质检平台错误,Error: {e.Message}");
|
|
|
+ throw new HttpRequestException($"企业服务数据错误,Error: {e.Message}");
|
|
|
}
|
|
|
}
|
|
|
|