shizhongqi hai 8 meses
pai
achega
33348f5bf0
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      common/components/delivery/services/DispatchService.php

+ 4 - 3
common/components/delivery/services/DispatchService.php

@@ -950,7 +950,7 @@ class DispatchService
                     }
                     break;
                 case 'dada':
-                    $deliveryList[] = [
+                    $list = [
                         'name' => '达达',
                         'en_name' => 'dada',
                         'price' => $item['fee'],
@@ -962,9 +962,10 @@ class DispatchService
                         'deliveryNo' => $item['deliveryNo'],
                     ];
                     if(isset($item['couponName']) && isset($item['couponFee'])){
-                        $deliveryList['couponName'] = $item['couponName'];
-                        $deliveryList['couponFee'] = $item['couponFee'];
+                        $list['couponName'] = $item['couponName'];
+                        $list['couponFee'] = $item['couponFee'];
                     }
+                    $deliveryList[] = $list;
                     break;
 
                 case 'didi':