|
|
@@ -84,8 +84,11 @@ class DeliveryQuoteUtil
|
|
|
|
|
|
// 10. 获取报价结果
|
|
|
$result = null;
|
|
|
- if (in_array($params['deliveryPlatform'], ['huolala', 'fengniao'])) {
|
|
|
+ if (in_array($params['deliveryPlatform'], ['huolala', 'fengniao', 'didi'])) {
|
|
|
$bracketContent = $params['deliveryBracketContent'] ?? '';
|
|
|
+ if ($params['deliveryPlatform'] == 'didi') {
|
|
|
+ $bracketContent = "滴滴 ({$bracketContent})";
|
|
|
+ }
|
|
|
$key = '';
|
|
|
foreach ($deliveryList as $item) {
|
|
|
if ($params['deliveryPlatform'] == 'huolala') {
|
|
|
@@ -94,6 +97,10 @@ class DeliveryQuoteUtil
|
|
|
if ($params['deliveryPlatform'] == 'fengniao') {
|
|
|
$key = 'base_goods_id';
|
|
|
}
|
|
|
+ if ($params['deliveryPlatform'] == 'didi') {
|
|
|
+ $key = 'name';
|
|
|
+ }
|
|
|
+
|
|
|
if ($item[$key] == $bracketContent) {
|
|
|
$result = $item;
|
|
|
}
|