|
@@ -44,8 +44,11 @@ namespace DataSharing.Enterprise
|
|
|
TimeSpan.FromMinutes(118));
|
|
|
_logger.LogWarning("请求接口地址:--------------" + url);
|
|
|
var configEnterprise = channelconfigManager.GetConfigurationEnterprise();
|
|
|
+ string baseAddress = configEnterprise.AddressUrl;
|
|
|
+ if (!baseAddress.EndsWith('/'))
|
|
|
+ baseAddress += "/";
|
|
|
return await httpInvoker.RequestStringContentAsync<TResponse>(url, httpMethod, stringContent,
|
|
|
- d => d.SetHttpClient(configEnterprise.AddressUrl, token), cancellationToken);
|
|
|
+ d => d.SetHttpClient(baseAddress, token), cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|