123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\store\controller;
- use library\Controller;
- use think\Db;
- /**
- * 直播链接管理
- * Class LiveLink
- * @package app\store\controller
- */
- class LiveLink extends Controller
- {
- /**
- * 绑定数据表
- * @var string
- */
- protected $table = 'PlatformSet';
- /**
- * 直播链接管理
- * @auth true
- * @menu true
- * @throws \think\Exception
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\ModelNotFoundException
- * @throws \think\exception\DbException
- * @throws \think\exception\PDOException
- */
- public function index()
- {
- $this->title = '链接管理';
- $query = $this->_query($this->table)->where(['id'=>[2,3]])->order('id desc')->page();
- }
- /**
- * 编辑链接
- * @auth true
- * @menu true
- * @throws \think\Exception
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\ModelNotFoundException
- * @throws \think\exception\DbException
- * @throws \think\exception\PDOException
- */
- public function edit()
- {
- $this->title = '编辑链接';
- $this->_form($this->table, 'form');
- }
- }
|