| | |
| | | } |
| | | request.Enterprise.Adapt(enterprise); |
| | | enterprise.LicenseImage = GetOssUrl(enterprise.LicenseImage, request.Enterprise.LicenseImage); |
| | | if (enterprise.LicenseImage.IsNotNull() && enterprise.EnterpriseType.IsNull()) |
| | | { |
| | | var result = await BaiduOcrUtils.OcrBusinessLicense(enterprise.LicenseImage); |
| | | if (result?.Model != null) |
| | | { |
| | | result.Model.Adapt(enterprise); |
| | | } |
| | | } |
| | | if (enterprise.EnterpriseAuth != null) |
| | | { |
| | | enterprise.EnterpriseAuth.IdentityImg = GetOssUrl(enterprise.EnterpriseAuth.IdentityImg, request.Enterprise.EnterpriseAuth.IdentityImg); |