|
@@ -22,6 +22,7 @@ namespace KdanCommon.DocAI
|
|
// DocAI website : https://kdanai.azurewebsites.net/swagger/index.html
|
|
// DocAI website : https://kdanai.azurewebsites.net/swagger/index.html
|
|
|
|
|
|
private static string DocAIDomain = "https://kdanai.azurewebsites.net";
|
|
private static string DocAIDomain = "https://kdanai.azurewebsites.net";
|
|
|
|
+ private static string DocAIPreparingDomain = "https://kdanai-test.azurewebsites.net";
|
|
|
|
|
|
private HttpClient _httpClient = null;
|
|
private HttpClient _httpClient = null;
|
|
private string _appName = null;
|
|
private string _appName = null;
|
|
@@ -31,15 +32,23 @@ namespace KdanCommon.DocAI
|
|
private Uri _verifyUserUri = null;
|
|
private Uri _verifyUserUri = null;
|
|
private Uri _redactInfoExtractUri = null;
|
|
private Uri _redactInfoExtractUri = null;
|
|
|
|
|
|
- public DocAI(string appName, string appVersion)
|
|
|
|
|
|
+ public DocAI(string appName, string appVersion, bool isPreparing)
|
|
{
|
|
{
|
|
_httpClient = new HttpClient();
|
|
_httpClient = new HttpClient();
|
|
_appName = appName;
|
|
_appName = appName;
|
|
_appVersion = appVersion;
|
|
_appVersion = appVersion;
|
|
_platform = "uwp";
|
|
_platform = "uwp";
|
|
|
|
|
|
- _verifyUserUri = new Uri($"{DocAIDomain}/verify_user");
|
|
|
|
- _redactInfoExtractUri = new Uri($"{DocAIDomain}/redact_info_extract");
|
|
|
|
|
|
+ if (isPreparing)
|
|
|
|
+ {
|
|
|
|
+ _verifyUserUri = new Uri($"{DocAIPreparingDomain}/verify_user");
|
|
|
|
+ _redactInfoExtractUri = new Uri($"{DocAIPreparingDomain}/redact_info_extract");
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _verifyUserUri = new Uri($"{DocAIDomain}/verify_user");
|
|
|
|
+ _redactInfoExtractUri = new Uri($"{DocAIDomain}/redact_info_extract");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
~DocAI()
|
|
~DocAI()
|