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
| <?php
|
| namespace app\api\model\plus\goodcoupon;
|
| use app\common\model\product\Product as ProductModel;
|
| /**
| * 限时秒杀模型
| */
| class Coupon extends ProductModel
| {
| /**
| * 获取门店列表
| */
| public static function getCategoryIds()
| {
| $model = new static();
| // 获取列表数据
| $list = $model
| ->where('is_delete', '=', 0)
| ->where('is_virtual', '=', 2)
| ->column("category_id");
| return $list;
| }
|
| }
|
|