Quellcode durchsuchen

Merge branch 'developer' of https://gitlab.com/Arisono/SkWeiChat-Baidu

raomeng vor 8 Jahren
Ursprung
Commit
9a98995a94

+ 12 - 6
WeiChat/src/main/java/com/xzjmyk/pm/activity/ui/erp/activity/contanct/ContactsActivity.java

@@ -447,7 +447,7 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
         StringBuilder builder = new StringBuilder();
         int i = 0;
         for (ContactsModel u : models) {
-            if (u.getType() == 3) {
+            if (u.getType() == 3||u.getType()==2) {
                 if (i == models.size() - 1) {
                     builder.append(u.getPhone());
                 } else {
@@ -493,16 +493,15 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
 
             if (!ListUtils.isEmpty(array)) {
                 JSONObject o = null;
-//                for (ContactsModel model:models){
-//                    model.setType(3);
-//                }
+                for (int j = 0; j < models.size(); j++) {
+                    ContactsModel model = models.get(j);
                 for (int i = 0; i < array.size(); i++) {
                     o = array.getJSONObject(i);
                     String telephone = OACheckUtil.getJson2Text(o, "telephone");
                     String isfriend = OACheckUtil.getJson2Text(o, "isfriend");
                     int _id = OACheckUtil.getJsonIntager(o, "_id");
-                    for (int j = 0; j < models.size(); j++) {
-                        ContactsModel model = models.get(j);
+                
+                        
                         if (model.getPhone().equals(telephone)) {
                             if (isfriend.equals("0")) {
                                 model.setType(2);//非好友
@@ -513,6 +512,13 @@ public class ContactsActivity extends OABaseActivity implements ContactsAdapter.
                                 model.setImid(String.valueOf(_id));
                                 contactsDao.update(model,"0");
                             }
+                            break;
+                        }else{
+                            if (model.getType()==2){
+                                model.setType(3);//通讯录
+                                model.setImid(model.getImid());
+                                contactsDao.update(model,model.getImid());
+                            }
                         }
                     }
                 }

+ 2 - 2
WeiChat/src/main/res/raw/versionconfiguration.properties

@@ -1,3 +1,3 @@
 #发布版本状态改为true,测试版本状态为false
-release_version=false
-#release_version=true
+#release_version=false
+release_version=true

+ 0 - 35
applogin/build.gradle

@@ -1,35 +0,0 @@
-apply plugin: 'com.android.application'
-
-
-android {
-    compileSdkVersion 25
-    buildToolsVersion "25.0.3"
-
-
-    defaultConfig {
-        applicationId "com.uas.applogin"
-        minSdkVersion 16
-        targetSdkVersion 25
-        versionCode 1
-        versionName "1.0"
-
-        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
-
-    }
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
-        }
-    }
-}
-
-dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
-        exclude group: 'com.android.support', module: 'support-annotations'
-    })
-
-    compile 'com.android.support:appcompat-v7:25.3.1'
-    testCompile 'junit:junit:4.12'
-}

+ 0 - 26
applogin/src/androidTest/java/com/uas/applogin/ExampleInstrumentedTest.java

@@ -1,26 +0,0 @@
-package com.uas.applogin;
-
-import android.content.Context;
-import android.support.test.InstrumentationRegistry;
-import android.support.test.runner.AndroidJUnit4;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import static org.junit.Assert.*;
-
-/**
- * Instrumentation test, which will execute on an Android device.
- *
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
- */
-@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
-    @Test
-    public void useAppContext() throws Exception {
-        // Context of the app under test.
-        Context appContext = InstrumentationRegistry.getTargetContext();
-
-        assertEquals("com.uas.applogin", appContext.getPackageName());
-    }
-}

+ 0 - 5
applogin/src/main/AndroidManifest.xml

@@ -1,5 +0,0 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.uas.applogin">
-    <application android:allowBackup="true" android:icon="@mipmap/ic_launcher"
-        android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round"
-        android:supportsRtl="true" android:theme="@style/AppTheme" />
-</manifest>

+ 0 - 3
applogin/src/main/res/values/strings.xml

@@ -1,3 +0,0 @@
-<resources>
-    <string name="app_name">applogin</string>
-</resources>

+ 0 - 17
applogin/src/test/java/com/uas/applogin/ExampleUnitTest.java

@@ -1,17 +0,0 @@
-package com.uas.applogin;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
- */
-public class ExampleUnitTest {
-    @Test
-    public void addition_isCorrect() throws Exception {
-        assertEquals(4, 2 + 2);
-    }
-}

+ 2 - 2
version.gradle

@@ -11,8 +11,8 @@ ext {
             minSdkVersion    : 14,
             targetSdkVersion : 24,
             javaVersion      : JavaVersion.VERSION_1_8,
-            versionCode      : 112,
-            versionName      : '5.9.0',
+            versionCode      : 113,
+            versionName      : '5.9.1',
     ]
 
     depsVersion = [