|
...
|
...
|
@@ -310,10 +310,11 @@ class OrdersB2cAddRequest extends Request |
|
|
|
*/
|
|
|
|
public function appendOrderGoods($goods_id, $good_name, $price, $num, $dec_total, $deliveryItemId)
|
|
|
|
{
|
|
|
|
$item = ['index' => count($this->order_goods) + 1] + array_filter(get_defined_vars(), function ($v) {
|
|
|
|
$index = count($this->order_goods) + 1;
|
|
|
|
$item = ['index' => (string)$index] + array_filter(get_defined_vars(), function ($v) {
|
|
|
|
return !(is_null($v) || $v === '');
|
|
|
|
});
|
|
|
|
|
|
|
|
ksort($item);
|
|
|
|
return parent::append('order_goods', count($this->order_goods), $item);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|