|
|
@@ -71,6 +71,19 @@ class DidiAdapter extends Didi implements Adapter
|
|
|
'serviceLevel' => 0,
|
|
|
'serviceType' => 0, // 服务类型(快送专用,拉货不需要传) -- 拼送
|
|
|
],
|
|
|
+ // 普通货运业务类型
|
|
|
+ [
|
|
|
+ 'bizType' => 0, // 业务类型 -- 普通货运
|
|
|
+ 'carType' => 1012, // 车型 -- 微面
|
|
|
+ 'serviceLevel' => 0, // 服服务等级
|
|
|
+ //'serviceType' => 1,
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'bizType' => 0, // 业务类型 -- 普通货运
|
|
|
+ 'carType' => 1001, // 车型 -- 小面包
|
|
|
+ 'serviceLevel' => 0, // 服服务等级
|
|
|
+ //'serviceType' => 1,
|
|
|
+ ],
|
|
|
];
|
|
|
// 如果是预约单,则使用以下 拉货(普通货运)
|
|
|
$laHuo_serviceCategoryList = [
|
|
|
@@ -156,12 +169,15 @@ class DidiAdapter extends Didi implements Adapter
|
|
|
$payload = $this->buildRequestPayload($businessParams);
|
|
|
$apiUrl = $this->getApiUrl('freight.open.platform.channel.standard.estimate');
|
|
|
|
|
|
- return [
|
|
|
+ $request = [
|
|
|
'url' => $apiUrl,
|
|
|
'data' => $payload,
|
|
|
'headers' => ["Content-Type" => "application/x-www-form-urlencoded"],
|
|
|
'timeout' => 10.0,
|
|
|
];
|
|
|
+
|
|
|
+ //Yii::info('滴滴构建运费报价请求信息 -- ' .json_encode($request, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
|
|
|
+ return $request;
|
|
|
}
|
|
|
|
|
|
/**
|