OrderGoodsV2Model.class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. namespace Home\Model;
  15. use Think\Model;
  16. /**
  17. * @author yj
  18. * @desc 重构前端订单模型
  19. * Class OrderV2Model
  20. * @package Home\Model
  21. */
  22. class OrderGoodsV2Model {
  23. /**
  24. * @author yj
  25. * @desc 获取订单商品名称
  26. * @param $order_id
  27. * @return string
  28. */
  29. public function getOrderGoodsName( $order_id )
  30. {
  31. $order_goods_name = "";
  32. $order_goods_list = M('lionfish_comshop_order_goods')->where( array('order_id' => $order_id ) )->select();
  33. foreach($order_goods_list as $order_goods)
  34. {
  35. $order_goods_name .= $order_goods['name']." \r\n";
  36. }
  37. return $order_goods_name;
  38. }
  39. }