| | |
| | | return;
|
| | | }
|
| | |
|
| | | OfflineVisitorRegisterItem offlineVisitorRegisterItem = new OfflineVisitorRegisterItem();
|
| | | Register offlineVisitorRegisterItem = new Register();
|
| | | if (BaseApplication.getInstance().networkAvailable()) {
|
| | | params.addBodyParameter(Register.FieldNames.username, name);
|
| | | params.addBodyParameter(Register.FieldNames.mobilePhone, phone);
|
| | |
| | | surveillancePhotoBytes = byteArrayOutputStream.toByteArray();
|
| | | }
|
| | | FileUtil.writeToFile(surveillancePhotoPath, surveillancePhotoBytes);
|
| | | offlineVisitorRegisterItem.setSurveillancePhotoPath(surveillancePhotoPath);
|
| | | offlineVisitorRegisterItem.setSurveillancePhoto(surveillancePhotoPath);
|
| | |
|
| | | String uploadCustomPhotoPath = UUID.randomUUID().toString()+".bmp";
|
| | | byte[] uploadCustomPhotoBytes = new byte[]{};
|
| | |
| | | uploadCustomPhotoBytes = byteArrayOutputStream.toByteArray();
|
| | | }
|
| | | FileUtil.writeToFile(uploadCustomPhotoPath, uploadCustomPhotoBytes);
|
| | | offlineVisitorRegisterItem.setUploadCustomPhotoPath(uploadCustomPhotoPath);
|
| | | offlineVisitorRegisterItem.setUploadCustomPhoto(uploadCustomPhotoPath);
|
| | |
|
| | | String idCardPhotoPath = UUID.randomUUID().toString()+".bmp";
|
| | | byte[] idCardPhotoBytes = new byte[]{};
|
| | |
| | | idCardPhotoBytes = byteArrayOutputStream.toByteArray();
|
| | | }
|
| | | FileUtil.writeToFile(idCardPhotoPath, idCardPhotoBytes);
|
| | | offlineVisitorRegisterItem.setIdCardPhotoPath(idCardPhotoPath);
|
| | | offlineVisitorRegisterItem.setIdCardPhoto(idCardPhotoPath);
|
| | | }
|
| | | RegisterMng.getInstance().add(params, idCardHeadPath, offlineVisitorRegisterItem);
|
| | | }
|