提交 eb9fd349 编写于 作者: G gongfuxiang

可视化拖拽商品自定义顺序优化

上级 01a5496d
......@@ -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;
// 商品分类
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册