hanjing лет назад: 6
Родитель
Сommit
14ec548327

+ 13 - 14
app/src/main/java/com/sheep/gamegroup/util/CommonUtil.java

@@ -599,7 +599,20 @@ public class CommonUtil {
      */
     public void loginOut(final BaseActivity activity) {
         //登出
+        SheepApp.getInstance().getNetComponent().getApiService().logout(new JSONObject())
+                .subscribeOn(Schedulers.io())
+                .observeOn(AndroidSchedulers.mainThread())
+                .subscribe(new SheepSubscriber<BaseMessage>(activity) {
+                    @Override
+                    public void onNext(BaseMessage baseMessage) {
+
+                    }
 
+                    @Override
+                    public void onError(BaseMessage baseMessage) {
+
+                    }
+                });
         UMConfigUtils.onProfileSignOff();
         UMConfigUtils.onEvent(UMConfigUtils.Event.USER_LOGOUT);
         UMShareAPI api = UMShareAPI.get(activity);
@@ -646,20 +659,6 @@ public class CommonUtil {
         DataUtil.getInstance().clearData();
         //删除自动审核任务中保存的数据,防止用户切换账号后直接提交
         DDProviderHelper.getInstance().deleteTaskRecord();
-        SheepApp.getInstance().getNetComponent().getApiService().logout(new JSONObject())
-                .subscribeOn(Schedulers.io())
-                .observeOn(AndroidSchedulers.mainThread())
-                .subscribe(new SheepSubscriber<BaseMessage>() {
-                    @Override
-                    public void onNext(BaseMessage baseMessage) {
-
-                    }
-
-                    @Override
-                    public void onError(BaseMessage baseMessage) {
-
-                    }
-                });
         Intent intent = new Intent(activity, ActMain.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         intent.putExtra("INTENT_ACTION", "LOGOUT");
         activity.startActivity(intent);

+ 0 - 1
app/src/main/res/layout/fgt_personacenter_item_top.xml

@@ -88,7 +88,6 @@
             android:layout_marginStart="@dimen/content_padding_10"
             android:layout_marginTop="@dimen/content_padding_3"
             android:layout_marginBottom="@dimen/content_padding_3"
-            android:text="Hanjing"
             android:textColor="@color/txt_white"
             android:textSize="@dimen/text_size_12"
             app:layout_constraintStart_toEndOf="@+id/icon_img_iv"