Commit d3cd6cda authored by Quxl's avatar Quxl

x

parent d342de28
......@@ -7,6 +7,8 @@ import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
......@@ -15,11 +17,14 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.egolm.common.HttpUtil;
import com.egolm.common.StringUtil;
import com.egolm.shop.config.ExceptionHandler;
import com.egolm.shop.config.XException;
@Component
public class Express {
private static final Log logger = LogFactory.getLog(Express.class);
@Value("${opt.express.url}")
private String url;
......@@ -52,6 +57,7 @@ public class Express {
queryParams.put("number", sExpressNO.trim());
queryParams.put("type", sExpressType == null ? "" : sExpressType.trim());
String result = HttpUtil.get(url, queryParams, headers);
logger.debug(result);
JSONObject jsonObject = null;
try {
jsonObject = JSON.parseObject(result);
......
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