|
@@ -15,6 +15,7 @@ namespace app\common\library\express;
|
|
|
use app\common\model\Kuaidi;
|
|
|
use think\facade\Cache;
|
|
|
use app\common\library\helper;
|
|
|
+use think\facade\Log;
|
|
|
|
|
|
/**
|
|
|
* 快递100API模块
|
|
@@ -66,6 +67,7 @@ class Kuaidi100
|
|
|
$url = 'http://poll.kuaidi100.com/poll/query.do';
|
|
|
$result = curl_post($url, http_build_query($postData));
|
|
|
$express = helper::jsonDecode($result);
|
|
|
+ Log::info('query:'.$expressNo.':'.json_encode($express));
|
|
|
// 记录错误信息
|
|
|
if (isset($express['returnCode']) || !isset($express['data'])) {
|
|
|
$this->error = isset($express['message']) ? $express['message'] : '查询失败';
|