|
|
@@ -21,7 +21,9 @@ class PledgeLogic
|
|
|
{
|
|
|
$model = Loader::model('ProductLists');
|
|
|
foreach ($list as &$item) {
|
|
|
- $item['product_list'] = $model->whereIn('id', $item->product_id)->column('id,thum,'.$lan.'_name as name');
|
|
|
+ $item['product_list'] = $model->whereIn('id', $item->product_id)
|
|
|
+ ->orderRaw('field(id,'. $item->product_id.')')
|
|
|
+ ->column('id,thum,'.$lan.'_name as name');
|
|
|
}
|
|
|
return $list;
|
|
|
}
|