From 3699eddecd1337710f2bf1e95dac3e9bb4b49574 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 28 七月 2017 18:28:57 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java index 50f41d3..fd6ad80 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java @@ -144,7 +144,7 @@ public void fragment_attender_register_save_click(View v) { RequestParams params = new RequestParams(); - if (surveillanceQueryItem_selectPhoto != null) { + if (surveillanceQueryItem_selectPhoto == null) { Toast.makeText(MainActivity.getInstance(), "璇烽�夋嫨鐓х墖", Toast.LENGTH_SHORT).show(); return; } @@ -247,7 +247,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); offlineAttenderRegisterItem.setCreateTime(sdf.format(new Date())); - String rawSurveillancePhotoPath = UUID.randomUUID().toString()+".bmp"; + String rawSurveillancePhotoPath = UUID.randomUUID().toString()+""; byte[] rawSurveillancePhotoBytes = new byte[]{}; if (surveillanceQueryItem_selectPhoto != null) { @@ -265,7 +265,7 @@ FileUtil.writeToFile(rawSurveillancePhotoPath, rawSurveillancePhotoBytes); offlineAttenderRegisterItem.setRawSurveillancePhotoPath(rawSurveillancePhotoPath); - String surveillancePhotoPath = UUID.randomUUID().toString()+".bmp"; + String surveillancePhotoPath = UUID.randomUUID().toString()+""; byte[] surveillancePhotoBytes = new byte[]{}; if (fragment_attender_register_surveillance_photo_img != null) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); @@ -275,7 +275,7 @@ FileUtil.writeToFile(surveillancePhotoPath, surveillancePhotoBytes); offlineAttenderRegisterItem.setSurveillancePhoto(surveillancePhotoPath); - String uploadCustomPhotoPath = UUID.randomUUID().toString()+".bmp"; + String uploadCustomPhotoPath = UUID.randomUUID().toString()+""; byte[] uploadCustomPhotoBytes = new byte[]{}; if (fragment_attender_register_upload_custom_photo_img != null) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); @@ -285,7 +285,7 @@ FileUtil.writeToFile(uploadCustomPhotoPath, uploadCustomPhotoBytes); offlineAttenderRegisterItem.setUploadCustomPhoto(uploadCustomPhotoPath); - String idCardPhotoPath = UUID.randomUUID().toString()+".bmp"; + String idCardPhotoPath = UUID.randomUUID().toString()+""; byte[] idCardPhotoBytes = new byte[]{}; if (fragment_attender_register_id_card_photo_img != null) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); -- Gitblit v1.8.0