1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| <?php
|
| namespace app\api\model\order;
|
| use app\common\model\order\OrderProduct as OrderProductModel;
|
| /**
| * 商品订单模型
| */
| class OrderProduct extends OrderProductModel
| {
| /**
| * 隐藏字段
| */
| protected $hidden = [
| 'content',
| 'app_id',
| 'create_time',
| ];
|
| /**
| * 获取未评价的商品
| */
| public function getNotCommentProductList($order_id)
| {
| return $this->where(['order_id' => $order_id, 'is_comment' => 0])->with(['orderM', 'image'])->select();
| }
| }
|
|