getcontent("http://www.kuaidi100.com/autonumber/auto?num={$order}"), true); $result = $name[0]['comCode']; if (empty($result)) { return false; } else { return $result; } } /* * 返回$data array 快递数组查询失败返回false * @param $order 快递的单号 * $data['ischeck'] ==1 已经签收 * $data['data'] 快递实时查询的状态 array */ public function getorder($order) { $keywords = $this->expressname($order); if (!$keywords) { return false; } else { $result = $this->getcontent("http://www.kuaidi100.com/query?type={$keywords}&postid={$order}"); $data = json_decode($result, true); return $data; } } } ?>