|
@@ -52,7 +52,7 @@ public class OnlineDataProvider extends com.usai.redant.rautils.utils.Network
|
|
|
// out
|
|
// out
|
|
|
// 20
|
|
// 20
|
|
|
// secs
|
|
// secs
|
|
|
- private static final int SO_TIMEOUT = 30 * 1000; // so
|
|
|
|
|
|
|
+// private static final int SO_TIMEOUT = 30 * 1000; // so
|
|
|
// time
|
|
// time
|
|
|
// out
|
|
// out
|
|
|
// 20
|
|
// 20
|
|
@@ -68,34 +68,47 @@ public class OnlineDataProvider extends com.usai.redant.rautils.utils.Network
|
|
|
|
|
|
|
|
|
|
|
|
|
//DEBUG
|
|
//DEBUG
|
|
|
-// public static String BASE_URL = "http://10.0.0.123:8888";
|
|
|
|
|
|
|
+ public static String BASE_URL = "http://192.168.0.149/ACE_ISF_NEW";
|
|
|
|
|
|
|
|
//RELEASE
|
|
//RELEASE
|
|
|
- public static String BASE_URL = "https://ra.apexshipping.com";
|
|
|
|
|
|
|
+// public static String BASE_URL = "https://ra.united-us.net/doc/bk";
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL
|
|
// URL
|
|
|
- public static String URL_HOME = BASE_URL+"/main_new_29.php";
|
|
|
|
|
- public static String URL_LOGIN = BASE_URL+"/main_new_29.php";
|
|
|
|
|
|
|
+ public static String URL_LOGIN = BASE_URL+"/loginMobile.php";
|
|
|
|
|
+ public static String URL_CHANGE_PASS = BASE_URL+"/loginMobile.php";
|
|
|
|
|
+ public static String URL_LOGOUT = BASE_URL+"/loginMobile.php";
|
|
|
|
|
+ public static String URL_RETRIEVE_PASS = BASE_URL+"/loginMobile.php";
|
|
|
|
|
+ public static String URL_SIGNUP = BASE_URL+"/loginMobile.php";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public static String URL_HOME = BASE_URL+"/mobileMain.php";
|
|
|
|
|
+ public static String URL_SEARCH_RESULT = BASE_URL+"/resultMobile.php";
|
|
|
|
|
+
|
|
|
|
|
+ public static String URL_REQUEST_DETAIL = BASE_URL+"/resultMobile.php";
|
|
|
|
|
+
|
|
|
|
|
+ public static String URL_UPLOAD_IMG = BASE_URL+"";
|
|
|
|
|
+ public static String URL_SAVE_EDITOR = BASE_URL+"/editorMobile_v1.php";
|
|
|
|
|
+ public static String URL_EDIT = BASE_URL+"/editorMobile_v1.php";
|
|
|
|
|
+ public static String URL_CADEDATE = BASE_URL+"/resultMobile_v1.php";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
- public static String URL_HISTORY = BASE_URL+"/main_new_29.php";
|
|
|
|
|
- public static String URL_KPI = BASE_URL+"/main_new_29.php";
|
|
|
|
|
public static String URL_UPDATE_AUTH = BASE_URL+"/main_new_29.php";
|
|
public static String URL_UPDATE_AUTH = BASE_URL+"/main_new_29.php";
|
|
|
public static String URL_REQUEST_COUNT = BASE_URL+"/main_new_29.php";
|
|
public static String URL_REQUEST_COUNT = BASE_URL+"/main_new_29.php";
|
|
|
public static String URL_REQUEST_RECORDS = BASE_URL+"/main_new_29.php";
|
|
public static String URL_REQUEST_RECORDS = BASE_URL+"/main_new_29.php";
|
|
|
- public static String URL_RETRIEVE_PASS = BASE_URL+"/main_new_29.php";
|
|
|
|
|
|
|
+
|
|
|
public static String URL_ANNOUNCEMENTS = BASE_URL+"/mobile_news.php";
|
|
public static String URL_ANNOUNCEMENTS = BASE_URL+"/mobile_news.php";
|
|
|
public static String URL_NEWS = BASE_URL+"/mobile_news.php";
|
|
public static String URL_NEWS = BASE_URL+"/mobile_news.php";
|
|
|
public static String URL_LOCATIONS = BASE_URL+"/mobile_news26.php";
|
|
public static String URL_LOCATIONS = BASE_URL+"/mobile_news26.php";
|
|
|
public static String URL_PUSH = BASE_URL+"/main_new_29.php";
|
|
public static String URL_PUSH = BASE_URL+"/main_new_29.php";
|
|
|
public static String URL_LOG = BASE_URL+"/mobile_news.php";
|
|
public static String URL_LOG = BASE_URL+"/mobile_news.php";
|
|
|
- public static String URL_SEND_COMM_EMAIL = BASE_URL+"/main_new_29.php";
|
|
|
|
|
public static String URL_CHECK_UPDATE = BASE_URL+"/main_new_29.php";
|
|
public static String URL_CHECK_UPDATE = BASE_URL+"/main_new_29.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String URL_UPLOAD_SQL = BASE_URL+"/main_new_29.php";
|
|
public static String URL_UPLOAD_SQL = BASE_URL+"/main_new_29.php";
|
|
|
- public static String URL_FETCH_RESULT = BASE_URL+"/main_new_29.php";
|
|
|
|
|
- public static String URL_SAVE_RESULT = BASE_URL+"/main_new_29.php";
|
|
|
|
|
|
|
+// public static String URL_FETCH_RESULT = BASE_URL+"/main_new_29.php";
|
|
|
|
|
+// public static String URL_SAVE_RESULT = BASE_URL+"/main_new_29.php";
|
|
|
|
|
|
|
|
public static String URL_PRIVACY_POLICY = "http://united-us.net/privacy.html";
|
|
public static String URL_PRIVACY_POLICY = "http://united-us.net/privacy.html";
|
|
|
|
|
|
|
@@ -123,44 +136,6 @@ public class OnlineDataProvider extends com.usai.redant.rautils.utils.Network
|
|
|
// public static String URL_FETCH_RESULT = "http://192.168.0.138:8899/main_new_29.php";
|
|
// public static String URL_FETCH_RESULT = "http://192.168.0.138:8899/main_new_29.php";
|
|
|
// public static String URL_SAVE_RESULT = "http://192.168.0.138:8899/main_new_29.php";
|
|
// public static String URL_SAVE_RESULT = "http://192.168.0.138:8899/main_new_29.php";
|
|
|
//
|
|
//
|
|
|
-private static void prepareParams(Bundle params) {
|
|
|
|
|
- if (params == null) {
|
|
|
|
|
- params = new Bundle();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- String password = params.getString("password");
|
|
|
|
|
-
|
|
|
|
|
- String user = params.getString("name");
|
|
|
|
|
- if (user == null) {
|
|
|
|
|
- user = TradeFilingApplication.get_user();
|
|
|
|
|
- if (!TextUtils.isEmpty(user)) {
|
|
|
|
|
- params.putString("name",user);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (password == null) {
|
|
|
|
|
- password = TradeFilingApplication.get_pass();
|
|
|
|
|
- if (!TextUtils.isEmpty(password)) {
|
|
|
|
|
- params.putString("password",password);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- Locale curLocale = TradeFilingApplication.get_instance().getResources().getConfiguration().locale;
|
|
|
|
|
- String languageCode = curLocale.getLanguage();
|
|
|
|
|
- if (languageCode != null) {
|
|
|
|
|
- params.putString("language",languageCode);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- String company = TradeFilingApplication.get_company_list().optJSONObject(TradeFilingApplication.get_current_company_index()).optString("id");
|
|
|
|
|
-
|
|
|
|
|
- if(TextUtils.isEmpty(params.getString("company"))&&!TextUtils.isEmpty(company))
|
|
|
|
|
- {
|
|
|
|
|
- params.putString("company",company);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- params.putString("platform","android");
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject request_login(String user, String password)
|
|
public static JSONObject request_login(String user, String password)
|
|
@@ -168,17 +143,16 @@ private static void prepareParams(Bundle params) {
|
|
|
|
|
|
|
|
Bundle params = new Bundle();
|
|
Bundle params = new Bundle();
|
|
|
|
|
|
|
|
- user = TradeFilingApplication.get_user();
|
|
|
|
|
- password = TradeFilingApplication.get_pass();
|
|
|
|
|
|
|
+ params.putString("action","login");
|
|
|
|
|
|
|
|
if (user != null) {
|
|
if (user != null) {
|
|
|
- params.putString("name",user); // "WMoy059hzweXPSC74plhBA=="
|
|
|
|
|
|
|
+ params.putString("user",user); // "WMoy059hzweXPSC74plhBA=="
|
|
|
}
|
|
}
|
|
|
if (password != null) {
|
|
if (password != null) {
|
|
|
params.putString("password",password); // "CzADM7u51eNR7ScfQtJw7w=="
|
|
params.putString("password",password); // "CzADM7u51eNR7ScfQtJw7w=="
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- prepareParams(params);
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
String jsonStr = getJson(URL_LOGIN,params);
|
|
String jsonStr = getJson(URL_LOGIN,params);
|
|
|
// if (jsonStr == null || jsonStr.isEmpty()) {
|
|
// if (jsonStr == null || jsonStr.isEmpty()) {
|
|
@@ -198,6 +172,84 @@ private static void prepareParams(Bundle params) {
|
|
|
|
|
|
|
|
return handleJson(jsonStr);
|
|
return handleJson(jsonStr);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public static JSONObject request_home() {
|
|
|
|
|
+
|
|
|
|
|
+ Bundle params = new Bundle();
|
|
|
|
|
+ params.putString("action","dashboardMobile");
|
|
|
|
|
+
|
|
|
|
|
+// boolean personMode = TradeFilingApplication.get_instance().getPersonMode();
|
|
|
|
|
+// if (personMode) {
|
|
|
|
|
+// params.putString("personal_mode","true");
|
|
|
|
|
+// } else {
|
|
|
|
|
+// params.putString("personal_mode","false");
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+ String jstr = getJson(URL_HOME,params);
|
|
|
|
|
+
|
|
|
|
|
+ return handleJson(jstr);
|
|
|
|
|
+// Log.d("Network", "request_home: " + jstr);
|
|
|
|
|
+// try {
|
|
|
|
|
+//
|
|
|
|
|
+// if (jstr == null || jstr.length() <= 0)
|
|
|
|
|
+// {
|
|
|
|
|
+// JSONObject resultJson = new JSONObject();
|
|
|
|
|
+// resultJson.put("err_msg","Net Error. Cannot connect to server for now. Please retry later.");
|
|
|
|
|
+// resultJson.put("result",RESULT_NET_ERROR);
|
|
|
|
|
+// return resultJson;
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// JSONObject jsobj = new JSONObject(jstr);
|
|
|
|
|
+// return jsobj;
|
|
|
|
|
+//
|
|
|
|
|
+// } catch (JSONException e) {
|
|
|
|
|
+// e.printStackTrace();
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+// return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static JSONObject request_detail(Bundle params)
|
|
|
|
|
+ {
|
|
|
|
|
+ if(params==null)
|
|
|
|
|
+ params = new Bundle();
|
|
|
|
|
+ params.putString("action","detail");
|
|
|
|
|
+
|
|
|
|
|
+// boolean personMode = TradeFilingApplication.get_instance().getPersonMode();
|
|
|
|
|
+// if (personMode) {
|
|
|
|
|
+// params.putString("personal_mode","true");
|
|
|
|
|
+// } else {
|
|
|
|
|
+// params.putString("personal_mode","false");
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+ String jstr = getJson(URL_REQUEST_DETAIL,params);
|
|
|
|
|
+
|
|
|
|
|
+ return handleJson(jstr);
|
|
|
|
|
+
|
|
|
|
|
+// return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ public static JSONObject request_result(Bundle params)
|
|
|
|
|
+ {
|
|
|
|
|
+ if(params==null)
|
|
|
|
|
+ params = new Bundle();
|
|
|
|
|
+ params.putString("action","result");
|
|
|
|
|
+
|
|
|
|
|
+// boolean personMode = TradeFilingApplication.get_instance().getPersonMode();
|
|
|
|
|
+// if (personMode) {
|
|
|
|
|
+// params.putString("personal_mode","true");
|
|
|
|
|
+// } else {
|
|
|
|
|
+// params.putString("personal_mode","false");
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+ String jstr = getJson(URL_SEARCH_RESULT,params);
|
|
|
|
|
+
|
|
|
|
|
+ return handleJson(jstr);
|
|
|
|
|
+
|
|
|
|
|
+// return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public static JSONObject request_signup(String user, String password)
|
|
public static JSONObject request_signup(String user, String password)
|
|
|
{
|
|
{
|
|
|
return null;
|
|
return null;
|
|
@@ -382,60 +434,28 @@ private static void prepareParams(Bundle params) {
|
|
|
return RESULT_NET_ERROR;
|
|
return RESULT_NET_ERROR;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static int retrieve_pass(String user, String email)
|
|
|
|
|
|
|
+ public static JSONObject retrieve_pass(String user, String email)
|
|
|
{
|
|
{
|
|
|
String TAG = "net_dbg@retrieve_pass";
|
|
String TAG = "net_dbg@retrieve_pass";
|
|
|
Log.d(TAG, "u:" + user + ";e:" + email);
|
|
Log.d(TAG, "u:" + user + ";e:" + email);
|
|
|
- if (!OnlineDataProvider.NetworkIsAvailable())
|
|
|
|
|
- {
|
|
|
|
|
- Log.d(TAG, "network not available!");
|
|
|
|
|
- return OnlineDataProvider.RESULT_NET_NOTAVAILABLE; // network not available
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (!OnlineDataProvider.NetworkIsAvailable())
|
|
|
|
|
+// {
|
|
|
|
|
+// Log.d(TAG, "network not available!");
|
|
|
|
|
+// return OnlineDataProvider.RESULT_NET_NOTAVAILABLE; // network not available
|
|
|
|
|
+// }
|
|
|
Bundle parms = new Bundle();
|
|
Bundle parms = new Bundle();
|
|
|
parms.putString("user", user);
|
|
parms.putString("user", user);
|
|
|
parms.putString("email", email);
|
|
parms.putString("email", email);
|
|
|
- parms.putString("module_name", "Retrieve Password");
|
|
|
|
|
- parms.putString("action", "handset_search");
|
|
|
|
|
- String jstr = getJson(OnlineDataProvider.URL_RETRIEVE_PASS, parms);
|
|
|
|
|
|
|
+ parms.putString("action", "retrievePassword");
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* error occur while get authorization info from server. include can not
|
|
* error occur while get authorization info from server. include can not
|
|
|
* reach server , wrong parms ,server get wrong , etc.
|
|
* reach server , wrong parms ,server get wrong , etc.
|
|
|
*/
|
|
*/
|
|
|
- if (jstr == null || jstr.length() <= 0)
|
|
|
|
|
- {
|
|
|
|
|
- Log.d(TAG, "json is wrong");
|
|
|
|
|
- return OnlineDataProvider.RESULT_NET_ERROR;
|
|
|
|
|
- }
|
|
|
|
|
- JSONObject jsobj;
|
|
|
|
|
|
|
|
|
|
- // array = new JSONArray(json);
|
|
|
|
|
- try
|
|
|
|
|
- {
|
|
|
|
|
- jsobj = new JSONObject(jstr);
|
|
|
|
|
- if (jsobj.length() > 0)
|
|
|
|
|
- {
|
|
|
|
|
- int iresult = jsobj.getInt("result");
|
|
|
|
|
|
|
+ String jstr = getJson(URL_HOME,parms);
|
|
|
|
|
|
|
|
- if (iresult != OnlineDataProvider.AP_USER_AUTH)
|
|
|
|
|
- {
|
|
|
|
|
- // user not authorized return
|
|
|
|
|
- Log.d(TAG,
|
|
|
|
|
- "USER NOT AUTHORIZED CODE="
|
|
|
|
|
- + jsobj.getInt("result"));
|
|
|
|
|
- return RESULT_FALSE;
|
|
|
|
|
- }
|
|
|
|
|
- return RESULT_TRUE;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- return RESULT_NET_ERROR;
|
|
|
|
|
- }
|
|
|
|
|
- catch (JSONException e)
|
|
|
|
|
- {
|
|
|
|
|
- // TODO Auto-generated catch block
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return RESULT_NET_ERROR;
|
|
|
|
|
|
|
+ return handleJson(jstr);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void prepare_addtional_params(Bundle params) {
|
|
public static void prepare_addtional_params(Bundle params) {
|
|
@@ -443,18 +463,49 @@ private static void prepareParams(Bundle params) {
|
|
|
params = new Bundle();
|
|
params = new Bundle();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String user = TradeFilingApplication.get_user();
|
|
|
|
|
- if (user != null && params.getString("user") == null) {
|
|
|
|
|
- params.putString("user",user);
|
|
|
|
|
|
|
+ String password = params.getString("password");
|
|
|
|
|
+
|
|
|
|
|
+ String user = params.getString("user");
|
|
|
|
|
+ if (user == null) {
|
|
|
|
|
+ user = TradeFilingApplication.get_user();
|
|
|
|
|
+ if (!TextUtils.isEmpty(user)) {
|
|
|
|
|
+ params.putString("user",user);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (password == null) {
|
|
|
|
|
+ password = TradeFilingApplication.get_pass();
|
|
|
|
|
+ if (!TextUtils.isEmpty(password)) {
|
|
|
|
|
+ params.putString("password",password);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Locale curLocale = TradeFilingApplication.get_instance().getResources().getConfiguration().locale;
|
|
|
|
|
+ String languageCode = curLocale.getLanguage();
|
|
|
|
|
+ if (languageCode != null) {
|
|
|
|
|
+ params.putString("language",languageCode);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String pwd = TradeFilingApplication.get_pass();
|
|
|
|
|
- if (pwd != null && params.getString("pwd") == null) {
|
|
|
|
|
- params.putString("pwd",pwd);
|
|
|
|
|
|
|
+ params.putString("os","android");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ params.putString("app_ver",SHORT_VER);
|
|
|
|
|
+ params.putString("deviceid", RAUtil.getDeviceId(TradeFilingApplication.get_instance().getApplicationContext()));
|
|
|
|
|
+
|
|
|
|
|
+ int company_idx=TradeFilingApplication.get_current_company_index();
|
|
|
|
|
+ if(TradeFilingApplication.get_company_list()==null)
|
|
|
|
|
+ return;
|
|
|
|
|
+ JSONObject company_json = TradeFilingApplication.get_company_list().optJSONObject(company_idx);
|
|
|
|
|
+ if(company_json!=null)
|
|
|
|
|
+ {
|
|
|
|
|
+ String company = company_json.optString("id");
|
|
|
|
|
+
|
|
|
|
|
+ if(TextUtils.isEmpty(params.getString("company"))&&!TextUtils.isEmpty(company))
|
|
|
|
|
+ {
|
|
|
|
|
+ params.putString("company",company);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- params.putString("os","Android");
|
|
|
|
|
- params.putString("app_short_ver",SHORT_VER);
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1007,8 +1058,8 @@ private static void prepareParams(Bundle params) {
|
|
|
// ApexTrackingApplication.put_user(user);
|
|
// ApexTrackingApplication.put_user(user);
|
|
|
// ApexTrackingApplication.put_password(pass);
|
|
// ApexTrackingApplication.put_password(pass);
|
|
|
// ApexTrackingApplication.put_authorization(true);
|
|
// ApexTrackingApplication.put_authorization(true);
|
|
|
- TradeFilingApplication.login(
|
|
|
|
|
- user, pass,jsobj);
|
|
|
|
|
|
|
+// TradeFilingApplication.login(
|
|
|
|
|
+// user, pass,jsobj);
|
|
|
// Log.d(TAG, "sessionid=" + objheader.getString("sessionid"));
|
|
// Log.d(TAG, "sessionid=" + objheader.getString("sessionid"));
|
|
|
// JSONObject objupdate = array.getJSONObject(3); // whether
|
|
// JSONObject objupdate = array.getJSONObject(3); // whether
|
|
|
// need
|
|
// need
|
|
@@ -1464,47 +1515,7 @@ private static void prepareParams(Bundle params) {
|
|
|
|
|
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- public static JSONObject request_detail(Bundle params)
|
|
|
|
|
- {
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
- public static JSONObject request_result(Bundle params)
|
|
|
|
|
- {
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
- public static JSONObject request_home() {
|
|
|
|
|
|
|
|
|
|
- Bundle params = new Bundle();
|
|
|
|
|
- params.putString("action","hand_new_home_list");
|
|
|
|
|
- params.putBoolean("request_location",true);
|
|
|
|
|
- boolean personMode = TradeFilingApplication.get_instance().getPersonMode();
|
|
|
|
|
- if (personMode) {
|
|
|
|
|
- params.putString("personal_mode","true");
|
|
|
|
|
- } else {
|
|
|
|
|
- params.putString("personal_mode","false");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- String jstr = getJson(URL_HOME,params);
|
|
|
|
|
- Log.d("Network", "request_home: " + jstr);
|
|
|
|
|
- try {
|
|
|
|
|
-
|
|
|
|
|
- if (jstr == null || jstr.length() <= 0)
|
|
|
|
|
- {
|
|
|
|
|
- JSONObject resultJson = new JSONObject();
|
|
|
|
|
- resultJson.put("err_msg","Net Error. Cannot connect to server for now. Please retry later.");
|
|
|
|
|
- resultJson.put("result",RESULT_NET_ERROR);
|
|
|
|
|
- return resultJson;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- JSONObject jsobj = new JSONObject(jstr);
|
|
|
|
|
- return jsobj;
|
|
|
|
|
-
|
|
|
|
|
- } catch (JSONException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return null;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|