|
@ -46,17 +46,17 @@ class DeliveryManager |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param $delivery_id |
|
|
|
|
|
|
|
|
* @param $deliveryId |
|
|
* @param $order |
|
|
* @param $order |
|
|
* @param $deliveryGoods |
|
|
* @param $deliveryGoods |
|
|
* @throws Exception |
|
|
* @throws Exception |
|
|
* 发货商品数据 |
|
|
* 发货商品数据 |
|
|
*/ |
|
|
*/ |
|
|
public static function deliveryGoods($delivery_id, $order, $deliveryGoods) |
|
|
|
|
|
|
|
|
public static function deliveryGoods($deliveryId, $order, $deliveryGoods) |
|
|
{ |
|
|
{ |
|
|
foreach ($deliveryGoods as $k => $value) { |
|
|
foreach ($deliveryGoods as $k => $value) { |
|
|
$model = new DeliveryGoods(); |
|
|
$model = new DeliveryGoods(); |
|
|
$model->delivery_id = $delivery_id; |
|
|
|
|
|
|
|
|
$model->delivery_id = $deliveryId; |
|
|
$model->order_goods_id = $value->id; |
|
|
$model->order_goods_id = $value->id; |
|
|
$model->goods_id = $value->goods_id; |
|
|
$model->goods_id = $value->goods_id; |
|
|
$model->goods_name = $value->goods_name; |
|
|
$model->goods_name = $value->goods_name; |
|
|