Skip to content

Commit

Permalink
说明修改
Browse files Browse the repository at this point in the history
  • Loading branch information
wander112900 committed Aug 27, 2021
1 parent ae4e42e commit 4f3f831
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,23 @@ include "您的目录/Express/include.php";
```php
// 参考https://m.baidu.com/s?word=快递
try {
//快递单号
$number = 'YT5744661853493';

//cookie存放路径
$cookiePath = __DIR__ . '/cookie';
$express = new \Express\Express($cookiePath);
//错误重试次数
$tryTimes = 3;
//ip地址
$ip = '101.69.230.179';
$express = new \Express\Express($cookiePath, $ip, $tryTimes);
//取快递公司列表
$res = $express->getExpressList();
print_r($res);

//取快递物流信息
$res = $express->express($number);
print_r($res);

} catch (\Exception $e) {
echo $e->getMessage();
}
Expand Down

0 comments on commit 4f3f831

Please sign in to comment.