diff --git a/api/kd/index.php b/api/kd/index.php index d93542b..1d5f19b 100644 --- a/api/kd/index.php +++ b/api/kd/index.php @@ -1,12 +1,7 @@ $id, 'type'=>$type]); -exit; + class kuaidi { private $info = []; @@ -120,4 +115,9 @@ class kuaidi // print_r($this->array); return true; } -} \ No newline at end of file +} + +$request = need::request(); +$id = isset($request['id']) ? $request['id'] : false; +$type = isset($request['type']) ? $request['type'] : 'json'; +new kuaidi(['id'=>$id, 'type'=>$type]); \ No newline at end of file