Info.php 408 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Product\Lib;
  3. use Dever;
  4. class Info
  5. {
  6. public function get($ids)
  7. {
  8. $data = Dever::db('product/info')->getAllByIds($ids);
  9. if (!$data) {
  10. Dever::alert('错误的产品信息');
  11. }
  12. foreach ($data as $k => $v) {
  13. $data[$k]['cate'] = Dever::db('product/cate')->one($v['cate_id']);
  14. }
  15. return $data;
  16. }
  17. }