Commit bd77cc0e authored by Quxl's avatar Quxl

x

parent b08b7f5f
...@@ -49,8 +49,8 @@ public class Express { ...@@ -49,8 +49,8 @@ public class Express {
public JSONArray get(String sExpressNO, String sExpressType) { public JSONArray get(String sExpressNO, String sExpressType) {
Map<String, String> headers = this.getHeaders(); Map<String, String> headers = this.getHeaders();
Map<String, String> queryParams = new HashMap<String, String>(); Map<String, String> queryParams = new HashMap<String, String>();
queryParams.put("number", sExpressNO); queryParams.put("number", sExpressNO.trim());
queryParams.put("type", sExpressType); queryParams.put("type", sExpressType == null ? "" : sExpressType.trim());
String result = HttpUtil.get(url, queryParams, headers); String result = HttpUtil.get(url, queryParams, headers);
JSONObject jsonObject = null; JSONObject jsonObject = null;
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment