|
@@ -12,6 +12,7 @@ declare (strict_types = 1);
|
|
|
|
|
|
namespace app\common\model;
|
|
|
|
|
|
+use app\api\controller\points\Log;
|
|
|
use app\common\library\express\Kuaidi100;
|
|
|
use app\common\model\store\Setting as SettingModel;
|
|
|
use app\common\enum\Setting as SettingEnum;
|
|
@@ -96,7 +97,7 @@ class Express extends BaseModel
|
|
|
* @throws \think\db\exception\DbException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
- public function dynamic(string $expressName, string $expressCode, string $expressNo)
|
|
|
+ public function dynamic(string $expressName, string $expressCode, string $expressNo, $phone = '')
|
|
|
{
|
|
|
$data = [
|
|
|
'express_name' => $expressName,
|
|
@@ -107,7 +108,7 @@ class Express extends BaseModel
|
|
|
// 实例化快递100类
|
|
|
$Kuaidi100 = new Kuaidi100($config);
|
|
|
// 请求查询接口
|
|
|
- $data['list'] = $Kuaidi100->query($expressCode, $expressNo);
|
|
|
+ $data['list'] = $Kuaidi100->query($expressCode, $expressNo,$phone);
|
|
|
if ($data['list'] === false) {
|
|
|
$this->error = $Kuaidi100->getError();
|
|
|
return false;
|
|
@@ -140,6 +141,7 @@ class Express extends BaseModel
|
|
|
$Kuaidi100 = new Kuaidi100($config);
|
|
|
// 请求查询接口
|
|
|
$data = $Kuaidi100->deliverylist($expressNo, $delivery_time, $type);
|
|
|
+ \think\facade\Log::info('delivery:'.$expressNo.':'.json_encode($data));
|
|
|
if ($data === false) {
|
|
|
$this->error = $Kuaidi100->getError();
|
|
|
return false;
|