|
@@ -442,11 +442,13 @@ public class KuaiDi100 {
|
|
|
public JSONObject selectCourierCompany2(String code,String num) {
|
|
|
num = num.toLowerCase();
|
|
|
JSONObject json = null;
|
|
|
- if(code.toLowerCase().equals("sf") || code.toLowerCase().equals("shunfeng")){
|
|
|
+ boolean flag = code.toLowerCase().equals("sf") || code.toLowerCase().equals("shunfeng");
|
|
|
+ flag = true;
|
|
|
+ if(flag){
|
|
|
KuaiDi100 kuaidi = new KuaiDi100();
|
|
|
String result = null;
|
|
|
try {
|
|
|
- result = kuaidi.selectCourierSF("SF", num);
|
|
|
+ result = kuaidi.selectCourierSF(code, num);
|
|
|
if(result != null){
|
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
JSONObject jn = JSONObject.fromObject(result);
|
|
@@ -459,7 +461,6 @@ public class KuaiDi100 {
|
|
|
for(int i=context.size()-1;i > 0;i--){
|
|
|
JSONObject job = context.getJSONObject(i);
|
|
|
HashMap<String,String> map = new HashMap<>();
|
|
|
-
|
|
|
map.put("time",String.valueOf((sf.parse(job.getString("AcceptTime")).getTime()) /1000));
|
|
|
map.put("desc",job.getString("AcceptStation"));
|
|
|
list.add(map);
|