mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-05 13:22:29 +08:00
可视化拖拽商品自定义顺序优化
This commit is contained in:
@ -849,6 +849,17 @@ class BaseLayout
|
||||
'order_by' => $order_by,
|
||||
];
|
||||
$ret = GoodsService::GoodsList($request_params);
|
||||
if(!empty($ret['data']))
|
||||
{
|
||||
// 商品自定义按照顺序重新调整
|
||||
$goods = [];
|
||||
$temp = array_column($ret['data'], null, 'id');
|
||||
foreach($params['goods_ids'] as $v)
|
||||
{
|
||||
$goods[] = $temp[$v];
|
||||
}
|
||||
$ret['data'] = $goods;
|
||||
}
|
||||
break;
|
||||
|
||||
// 商品分类
|
||||
|
||||
Reference in New Issue
Block a user