道路运输证识别优化
This commit is contained in:
parent
1ef4f3b9ca
commit
291578cd72
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user