huangdong %!s(int64=6) %!d(string=hai) anos
pai
achega
266acb106b
Modificáronse 1 ficheiros con 17 adicións e 1 borrados
  1. 17 1
      test/TestKdniao.php

+ 17 - 1
test/TestKdniao.php

@@ -29,9 +29,25 @@ class TestKdniao extends PHPUnit_Framework_TestCase
         $e_code     = "ZTO";
         $logisticCode   = "457209987858";
 
+        $e_code     = "SF";
+        $logisticCode   = "455515609421";//245041571508
+        $logisticCode   = "245041571508";//245041571508
+
+        $e_code     = "STO";
+        $logisticCode   = "3383841151588";//245041571508 1000000004193202
+
+        $logisticCode  = "3388737234994";
+
         $ret = kdn_helper::query($e_code, $logisticCode);
 
-        var_dump($ret);
+        if ($ret === false || empty($ret)) {
+            var_dump($ret);
+        }else{
+            $deliver_info = json_decode(urldecode($ret), true);
+            var_dump($deliver_info);
+        }
+
+
     }
 
     public function testSubscribe()