quanwei
2025-11-28 3ea53e61cc23fdb3ddf8b38a199ca60a6da8c407
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
 
namespace app\common\model\plus\live;
 
use app\common\model\BaseModel;
 
/**
 * 房间商品模型
 */
class LiveProduct extends BaseModel
{
    protected $name = 'live_product';
    protected $pk = 'live_product_id';
 
    /**
     * 管理商品表
     */
    public function product()
    {
        return $this->belongsTo('app\\common\\model\\product\\Product', 'product_id', 'product_id')->hidden(['content']);
    }
}