|
@@ -40,9 +40,12 @@ public class KD100Util {
|
|
|
* @param num 快递单号
|
|
|
*/
|
|
|
public static KD100Result queryTrack(String com, String num) {
|
|
|
- HttpResult httpResult;
|
|
|
-
|
|
|
ConfigInfo configInfo = getConfigInfo();
|
|
|
+ return queryTrack(com, num, configInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static KD100Result queryTrack(String com, String num, ConfigInfo configInfo) {
|
|
|
+ HttpResult httpResult;
|
|
|
|
|
|
try {
|
|
|
// 参数组合成的json对象
|
|
@@ -112,8 +115,12 @@ public class KD100Util {
|
|
|
* @param num 快递单号
|
|
|
*/
|
|
|
public static void subscribe(String com, String num) {
|
|
|
- HttpResult result;
|
|
|
ConfigInfo configInfo = getConfigInfo();
|
|
|
+ subscribe(com, num, configInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void subscribe(String com, String num, ConfigInfo configInfo) {
|
|
|
+ HttpResult result;
|
|
|
try {
|
|
|
SubscribeParameters subscribeParameters = new SubscribeParameters();
|
|
|
subscribeParameters.setCallbackurl(getCallbackUrl());
|