|
@@ -90,46 +90,49 @@ public class Network
|
|
|
|
|
|
|
|
|
|
|
|
|
//release
|
|
//release
|
|
|
- public static String URL_HOME = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_HISTORY = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_KPI = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_UPDATE_AUTH = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_REQUEST_COUNT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_REQUEST_RECORDS = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_RETRIEVE_PASS = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_ANNOUNCEMENTS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
- public static String URL_NEWS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
- public static String URL_LOCATIONS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
- public static String URL_PUSH = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_LOG = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
- public static String URL_SEND_COMM_EMAIL = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_CHECK_UPDATE = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
|
|
+// public static String URL_HOME = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_HISTORY = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_KPI = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_UPDATE_AUTH = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_REQUEST_COUNT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_REQUEST_RECORDS = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_RETRIEVE_PASS = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_ANNOUNCEMENTS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+// public static String URL_NEWS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+// public static String URL_LOCATIONS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+// public static String URL_PUSH = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_LOG = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+// public static String URL_SEND_COMM_EMAIL = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_CHECK_UPDATE = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
|
|
|
// 2019.1.5
|
|
// 2019.1.5
|
|
|
- public static String URL_UPLOAD_SQL = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_FETCH_RESULT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
- public static String URL_SAVE_RESULT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
|
|
+// public static String URL_UPLOAD_SQL = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_FETCH_RESULT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
+// public static String URL_SAVE_RESULT = "https://ra.apexshipping.com/main_new.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
//
|
|
|
////debug
|
|
////debug
|
|
|
-// public static String URL_HOME = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-// public static String URL_HISTORY = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-//
|
|
|
|
|
-// public static String URL_UPDATE_AUTH = "http://192.168.0.155/Online/Online/login.php";
|
|
|
|
|
-// public static String URL_REQUEST_COUNT = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-// public static String URL_REQUEST_RECORDS = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-// public static String URL_RETRIEVE_PASS = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-// public static String URL_ANNOUNCEMENTS = "http://192.168.0.155/Online/Online/mobile_news.php";
|
|
|
|
|
-// public static String URL_NEWS = "http://192.168.0.155/Online/Online/mobile_news.php";
|
|
|
|
|
-// public static String URL_LOCATIONS = "http://192.168.0.155/Online/Online/mobile_news.php";
|
|
|
|
|
-// public static String URL_PUSH = "http://192.168.0.155/Online/Online/main_new.php";
|
|
|
|
|
-// public static String URL_LOG = "http://192.168.0.155/Online/Online/mobile_news.php";
|
|
|
|
|
-//
|
|
|
|
|
|
|
+ public static String URL_HOME = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_HISTORY = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_KPI = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_UPDATE_AUTH = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_REQUEST_COUNT = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_REQUEST_RECORDS = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_RETRIEVE_PASS = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_ANNOUNCEMENTS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+ public static String URL_NEWS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+ public static String URL_LOCATIONS = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+ public static String URL_PUSH = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_LOG = "https://ra.apexshipping.com/mobile_news.php";
|
|
|
|
|
+ public static String URL_SEND_COMM_EMAIL = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_CHECK_UPDATE = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ public static String URL_UPLOAD_SQL = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_FETCH_RESULT = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
+ public static String URL_SAVE_RESULT = "http://192.168.0.138:8899/main_new_26.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1543,28 +1546,31 @@ public class Network
|
|
|
|
|
|
|
|
params.putString("action","handset_search");
|
|
params.putString("action","handset_search");
|
|
|
|
|
|
|
|
- String url = "http://192.168.1.151:8080/MyWeb/SearchBooking";
|
|
|
|
|
-
|
|
|
|
|
String module_name = params.getString("module_name");
|
|
String module_name = params.getString("module_name");
|
|
|
- if (module_name.equals("Ocean Booking")) {
|
|
|
|
|
-
|
|
|
|
|
- } else if (module_name.equals("Ocean B/L info.")) {
|
|
|
|
|
-
|
|
|
|
|
- url = "http://192.168.1.151:8080/MyWeb/SearchBL";
|
|
|
|
|
- } else if (module_name.equals("Container detail")) {
|
|
|
|
|
|
|
|
|
|
- url = "http://192.168.1.151:8080/MyWeb/SearchContainer";
|
|
|
|
|
- } else if (module_name.equals("Download Document")) {
|
|
|
|
|
|
|
|
|
|
- url = "http://192.168.1.151:8080/MyWeb/SearchDoc";
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- try {
|
|
|
|
|
- Thread.sleep(2000);
|
|
|
|
|
- } catch (InterruptedException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// String url = "http://192.168.1.151:8080/MyWeb/SearchBooking";
|
|
|
|
|
+//
|
|
|
|
|
+// if (module_name.equals("Ocean Booking")) {
|
|
|
|
|
+//
|
|
|
|
|
+// } else if (module_name.equals("Ocean B/L info.")) {
|
|
|
|
|
+//
|
|
|
|
|
+// url = "http://192.168.1.151:8080/MyWeb/SearchBL";
|
|
|
|
|
+// } else if (module_name.equals("Container detail")) {
|
|
|
|
|
+//
|
|
|
|
|
+// url = "http://192.168.1.151:8080/MyWeb/SearchContainer";
|
|
|
|
|
+// } else if (module_name.equals("Download Document")) {
|
|
|
|
|
+//
|
|
|
|
|
+// url = "http://192.168.1.151:8080/MyWeb/SearchDoc";
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// try {
|
|
|
|
|
+// Thread.sleep(2000);
|
|
|
|
|
+// } catch (InterruptedException e) {
|
|
|
|
|
+// e.printStackTrace();
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
+ String url = URL_FETCH_RESULT;
|
|
|
// URL_FETCH_RESULT
|
|
// URL_FETCH_RESULT
|
|
|
String jstr = getJson(url, params);
|
|
String jstr = getJson(url, params);
|
|
|
|
|
|