Browse Source

upgrade:优化

xwh 3 weeks ago
parent
commit
066291538b

+ 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'

+ 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();
                     }