getAllByIds($ids); if (!$data) { Dever::alert('错误的产品信息'); } foreach ($data as $k => $v) { $data[$k]['cate'] = Dever::db('product/cate')->one($v['cate_id']); } return $data; } }