$this->app, 'RequestType' => '1002', 'RequestData' => urlencode($requestData), 'DataType' => '2', ); //快递鸟请求接口类型 $expressConfig = unserialize(ConfigService::get('logistics_config', 'express_bird', '')); $requestType = $expressConfig['set_meal'] ?? 'free'; $searchUrl = 'https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx'; //为付费类型时调整请求指令 if ($requestType == 'pay') { $datas['RequestType'] = '8001'; } $datas['DataSign'] = self::encrypt($requestData, $this->key); $result = Requests::post($searchUrl, [], $datas); $result = json_decode($result->body, true); if (isset($result['Traces']) && !empty($result['Traces'])) { $this->logisticsInfo = $result['Traces']; } $this->error = json_encode($result, JSON_UNESCAPED_UNICODE); return false; } }