|
@@ -2,7 +2,9 @@ package com.xwkj.sqjw.mvp.ui.fragment;
|
|
|
|
|
|
import android.Manifest;
|
|
import android.Manifest;
|
|
import android.content.ComponentName;
|
|
import android.content.ComponentName;
|
|
|
|
+import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
|
+import android.content.SharedPreferences;
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageManager;
|
|
import android.content.pm.PackageManager;
|
|
import android.os.Build;
|
|
import android.os.Build;
|
|
@@ -33,6 +35,7 @@ import com.xwkj.sqjw.mvp.contract.MyContract;
|
|
import com.xwkj.sqjw.mvp.presenter.MyPresenter;
|
|
import com.xwkj.sqjw.mvp.presenter.MyPresenter;
|
|
|
|
|
|
import com.xwkj.sqjw.R;
|
|
import com.xwkj.sqjw.R;
|
|
|
|
+import com.zkjc.common.utils.ShareInfo;
|
|
|
|
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
|
|
|
|
@@ -130,11 +133,16 @@ public class MyFragment extends BaseFragment<MyPresenter> implements MyContract.
|
|
btLogout.setOnClickListener(view -> {
|
|
btLogout.setOnClickListener(view -> {
|
|
// getActivity().getSharedPreferences("sys", Context.MODE_PRIVATE).edit().putBoolean("isFirst", true).commit();
|
|
// getActivity().getSharedPreferences("sys", Context.MODE_PRIVATE).edit().putBoolean("isFirst", true).commit();
|
|
// getActivity().finish();
|
|
// getActivity().finish();
|
|
- ComponentName componetName = new ComponentName("com.xwkj.xfjc", "com.xwkj.xfjc.mvp.ui.activity.LoginActivity");
|
|
|
|
|
|
+ ComponentName componetName = new ComponentName("com.xwkj.rwxffk", "com.xwkj.rwxffk.mvp.ui.activity.LoginActivity");
|
|
try {
|
|
try {
|
|
Intent intent = new Intent();
|
|
Intent intent = new Intent();
|
|
intent.setComponent(componetName);
|
|
intent.setComponent(componetName);
|
|
- intent.putExtra("username", "207919");
|
|
|
|
|
|
+ SharedPreferences sys = getActivity().getSharedPreferences("sys", Context.MODE_PRIVATE);
|
|
|
|
+ String userName = sys.getString("zh", "");
|
|
|
|
+ String password = sys.getString("mm", "");
|
|
|
|
+ intent.putExtra("appId", "1851531592469798914");
|
|
|
|
+ intent.putExtra("xwkjUserName", "sqmj2");
|
|
|
|
+ intent.putExtra("xwkjPassword", password);
|
|
startActivity(intent);
|
|
startActivity(intent);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|