public void showFailInfo(JSONObject jo) { try { int status = jo.getInt(URL.STATUS); switch (status) { case 1: showCustomToast(jo.getJSONObject(URL.RESPONSE).getString(URL.INFO)); break; case 2: showCustomToast(jo.getJSONObject(URL.RESPONSE).getString(URL.INFO)); loginOut(); break; } } catch (JSONException e) { e.printStackTrace(); } }
public void showIntentErrorToast() { showCustomToast("网络连接失败"); }