道路运输证识别优化

This commit is contained in:
lijia 2024-12-03 16:13:32 +08:00
parent 1ef4f3b9ca
commit 291578cd72

View File

@ -114,7 +114,7 @@ public class PhotoCarActivity extends BaseAppCompatActivity implements View.OnCl
if (customDialog != null && customDialog.isShowing())
customDialog.dismiss();
OCRRoadBean ib = new Gson().fromJson(CacheGroup.cacheList.get("ORCRoadLicZj"), OCRRoadBean.class);
if (ib.getCode() == 200 && ib.getData() != null) {
if (ib.getCode() == 200 && ib.getData() != null&&!TextUtils.isEmpty(ib.getData().getLicenseNumber())) {
value1.setText(PatternUtils.getNumByStr(ib.getData().getLicenseNumber()));
} else {
Toast.makeText(con, "识别失败", Toast.LENGTH_SHORT).show();