危险源管理模块接入真实数据库:新增危大/超危工程、风险控制清单、安全验收、安全巡检、临时用电管理(含前端页面、BLL/API服务、WebAPI控制器、Model项、SQL脚本与接口文档)
排除 CreateModel.bat(含明文sa密码与本地服务器名,未入库)
This commit is contained in:
@@ -28,8 +28,6 @@ namespace SgManager.AI
|
||||
/// <returns>结果状态</returns>
|
||||
public static APIBaseModel<IDCardRecognitionModel> GetIdcardRecognitionString(string token, string imagePath, ref string recognitionString, out string errorMsg, string id_card_side = "front", bool detect_direction = false, string detect_risk = "false")
|
||||
{
|
||||
bool resultState = true;
|
||||
|
||||
APIBaseModel<IDCardRecognitionModel> tempModel = new APIBaseModel<IDCardRecognitionModel>();
|
||||
tempModel.contextModel = new IDCardRecognitionModel();
|
||||
|
||||
@@ -53,7 +51,6 @@ namespace SgManager.AI
|
||||
recognitionString = tempResult;
|
||||
if (recognitionString.Contains("\"error_code\""))//说明异常
|
||||
{
|
||||
resultState = false;
|
||||
tempModel.state = false;
|
||||
tempModel.contextModel.errorTypeModel = Json.ToObject<ErrorTypeModel>(tempResult);
|
||||
tempModel.contextModel.errorTypeModel.error_discription = OCR_CharacterRecognitionErrorType.GetErrorCodeToDescription(tempModel.contextModel.errorTypeModel.error_code);
|
||||
@@ -70,7 +67,6 @@ namespace SgManager.AI
|
||||
}
|
||||
catch (Exception ex)//接口外部异常,如网络异常
|
||||
{
|
||||
resultState = false;
|
||||
errorMsg = ex.ToString();
|
||||
tempModel.state = false;
|
||||
tempModel.errorMsg = ex.ToString();
|
||||
|
||||
Reference in New Issue
Block a user