Commit bd77cc0e authored by Quxl's avatar Quxl

x

parent b08b7f5f
......@@ -49,8 +49,8 @@ public class Express {
public JSONArray get(String sExpressNO, String sExpressType) {
Map<String, String> headers = this.getHeaders();
Map<String, String> queryParams = new HashMap<String, String>();
queryParams.put("number", sExpressNO);
queryParams.put("type", sExpressType);
queryParams.put("number", sExpressNO.trim());
queryParams.put("type", sExpressType == null ? "" : sExpressType.trim());
String result = HttpUtil.get(url, queryParams, headers);
JSONObject jsonObject = null;
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