2 次代碼提交 ffec3a4ce2 ... f550225341

作者 SHA1 備註 提交日期
  xwh f550225341 upgrade:日志 1 周之前
  xwh 066291538b upgrade:优化 1 周之前

+ 2 - 2
app/build.gradle

@@ -16,8 +16,8 @@ android {
         applicationId "com.hanghui.senic"
         minSdkVersion 22
         targetSdkVersion 22
-        versionCode 156
-        versionName "1.4.1.241231"
+        versionCode 157
+        versionName "1.4.1.250102"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         ndk {
             abiFilters "armeabi-v7a"   //armeabi-v7a 'arm64-v8a'

+ 3 - 3
app/src/main/java/com/hanghui/senic/baiduface/WebsocketService.java

@@ -760,12 +760,12 @@ public class    WebsocketService extends Service {
         }
         callbackItems.clear();
         //人脸数据下发结果统计
-        if( callbackItems.size() == totalSize ) { //最后一条数据
+     //   if( callbackItems.size() == totalSize ) { //最后一条数据
             String result = "本次共下发 " + totalSize + " 条人脸数据" + " ,其中错误的数据 " + errorUserDataCount + " 条, " +
                     "正确的数据 " + (totalSize - errorUserDataCount) + " 条, " +
                     "正确的数据中,不同userid的数据共有 " + currentCount + " 条.";
             AppLogUtils.i(true, "processUserData_issue, 人脸数据下发结果统计", "processUserData_issue, 人脸数据下发结果统计: " + result );
-        }
+      //  }
 //        initFaceSearchData();
 
     }
@@ -970,7 +970,7 @@ public class    WebsocketService extends Service {
         if(callbackItemSize < totalCount ) {
             AppLogUtils.i(false, TAG + " ,sendMessage_issueCallback, 下发中...", "sendMessage_issueCallback(), 下发中, issueCallbackJsonStr=" + issueCallbackJsonStr);
         } else {  //处理最后一条数据
-            AppLogUtils.i(true, TAG + " ,sendMessage_issueCallback, 下发任务成功完成", "sendMessage_issueCallback(), 下发任务成功完成, issueCallbackJsonStr=" + issueCallbackJsonStr);
+            AppLogUtils.i(false, TAG + " ,sendMessage_issueCallback, 下发任务成功完成", "sendMessage_issueCallback(), 下发任务成功完成, issueCallbackJsonStr=" + issueCallbackJsonStr);
         }
 
     }

+ 2 - 2
datalibrary/src/main/java/com/example/datalibrary/api/FaceApi.java

@@ -331,7 +331,7 @@ public class FaceApi {
                     User item = iterator.next();
                     if (item != null &&
                             item.getUserId() != null &&
-                            item.getUserId().indexOf(userId) != -1) {
+                            item.getUserId().equals(userId) ) {
                         iterator.remove();
                     }
                 }
@@ -365,7 +365,7 @@ public class FaceApi {
                     User item = iterator.next();
                     if (item != null &&
                             item.getUserId() != null &&
-                            item.getUserId().indexOf(userId) != -1) {
+                            item.getUserId().equals(userId)) {
                         FaceSDKManager.getInstance().delPush(item);
                         iterator.remove();
                     }