Przeglądaj źródła

优化注销页面退出逻辑

hy 3 lat temu
rodzic
commit
203297a0a2

+ 3 - 2
app/src/main/java/com/electric/chargingpile/activity/LogOutActivity.java

@ -93,7 +93,6 @@ public class LogOutActivity extends AppCompatActivity {
93 93
                .setCancelable(true)
94 94
                .setContent(str)
95 95
                .show();
96
97 96
    }
98 97
99 98
@ -115,6 +114,7 @@ public class LogOutActivity extends AppCompatActivity {
115 114
                String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
116 115
                if (rtnCode.equals("01")){
117 116
                    signOut();
117
                    startActivity(new Intent(LogOutActivity.this,MainMapActivity.class));
118 118
                }else{
119 119
                    String rtnMsg = JsonUtils.getKeyResult(response, "rtnMsg");
120 120
                    showDialog(rtnMsg);
@ -136,7 +136,7 @@ public class LogOutActivity extends AppCompatActivity {
136 136
        SharedPreferences sharedPreferences = getSharedPreferences("userInfo",
137 137
                Activity.MODE_PRIVATE);
138 138
        sharedPreferences.edit().clear();
139
        startActivity(new Intent(LogOutActivity.this,MainMapActivity.class));
139
140 140
    }
141 141
142 142
    /**
@ -268,6 +268,7 @@ public class LogOutActivity extends AppCompatActivity {
268 268
        if (keyCode == KeyEvent.KEYCODE_BACK){
269 269
            if (state !=null && state.equals("1")){
270 270
                signOut();
271
                startActivity(new Intent(LogOutActivity.this,MainMapActivity.class));
271 272
                return true;
272 273
            }
273 274
        }

+ 2 - 2
app/src/main/java/com/electric/chargingpile/application/MainApplication.java

@ -96,8 +96,8 @@ public class MainApplication extends MultiDexApplication {
96 96
//    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
97 97
//    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
98 98

99
//        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
100
    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
99
        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
100
//    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
101 101

102 102

103 103
    //	public static String url = "https://cdz.d1ev.com";