Pārlūkot izejas kodu

Merge branch 'master' into master_925

guilin 1 mēnesi atpakaļ
vecāks
revīzija
97246df91d

+ 1 - 3
app/src/main/java/com/fxy/common/AsyncFileUpload.java

@@ -375,9 +375,7 @@ public class AsyncFileUpload {
             if (myObject.getIsFinish() != 3){
                 myObject.setIsFinish( status == 1 ? 3 : 2);
             }
-            if (status == 1){
-                myObject.setOssUrl(photoPath);
-            }else{
+            if (status == 0){
                 myObject.setRePush(myObject.getRePush()+1);
             }
 

+ 7 - 6
app/src/main/java/com/fxy/common/AsyncPictureUpload.java

@@ -403,8 +403,11 @@ public class AsyncPictureUpload {
             awaitUploadList.addAll(realmResults);
         }
 
-        //@todo 临时处理数据用
-        tmpData();
+        //@todo
+        if (awaitUploadList.size()==0){
+            tmpData();
+        }
+
 
         if (awaitUploadList.size()>0){
             filedUpload(0);
@@ -416,7 +419,7 @@ public class AsyncPictureUpload {
         if (awaitUploadList.size()==0 && debug){
 
             HashMap<String,String> mapUrl= new HashMap<>();
-            mapUrl.put("dd31ae2f-dd02-46b2-bfdb-eb721ea11066","/prod/fxy/android/detection/20240923/d3e5552e-344c-4c74-be91-468cbb22f22c.JPEG");
+            mapUrl.put("7427cf45-8c73-4b59-96b9-7d5eb9b4d558","/prod/fxy/android/detection/20240923/39284eae-b033-4e7d-a17c-e85c43931b6c.JPEG");
 
             // 使用entrySet()遍历
             for (Map.Entry<String, String> entry : mapUrl.entrySet()) {
@@ -577,9 +580,7 @@ public class AsyncPictureUpload {
             if (myObject.getIsFinish() != 3){
                 myObject.setIsFinish( status == 1 ? 3 : 2);
             }
-            if (status == 1){
-                myObject.setOssUrl(photoPath);
-            }else{
+            if (status == 0){
                 myObject.setRePush(myObject.getRePush()+1);
             }
             mRealm.commitTransaction();

+ 4 - 4
app/src/main/java/com/fxy/mine/PictureSelectorActivity.java

@@ -60,10 +60,10 @@ public class PictureSelectorActivity extends BaseActivity implements QRCodeView.
 
         pictureSelectorUpload = new PictureSelectorUpload(PictureSelectorActivity.this,mRecyclerView,"tally");
 
-        mZBarView = findViewById(R.id.zbarview);
-        mZBarView.setDelegate(PictureSelectorActivity.this);
-
-        mZBarView.startCamera(); // 打开后置摄像头开始预览,但是并未开始识别
+//        mZBarView = findViewById(R.id.zbarview);
+//        mZBarView.setDelegate(PictureSelectorActivity.this);
+//
+//        mZBarView.startCamera(); // 打开后置摄像头开始预览,但是并未开始识别
 //        mZBarView.startCamera(Camera.CameraInfo.CAMERA_FACING_FRONT); // 打开前置摄像头开始预览,但是并未开始识别
 
 //        mZBarView.startSpotAndShowRect(); // 显示扫描框,并开始识别