123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * lionfish 商城系统
- *
- *
- * @author fish
- *
- */
- namespace Home\Model;
- use Think\Model;
- /**
- * @author yj
- * @desc 重构前端订单模型
- * Class OrderV2Model
- * @package Home\Model
- */
- class OrderGoodsV2Model {
- /**
- * @author yj
- * @desc 获取订单商品名称
- * @param $order_id
- * @return string
- */
- public function getOrderGoodsName( $order_id )
- {
- $order_goods_name = "";
- $order_goods_list = M('lionfish_comshop_order_goods')->where( array('order_id' => $order_id ) )->select();
- foreach($order_goods_list as $order_goods)
- {
- $order_goods_name .= $order_goods['name']." \r\n";
- }
- return $order_goods_name;
- }
- }
|