LiveLink.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\store\controller;
  3. use library\Controller;
  4. use think\Db;
  5. /**
  6. * 直播链接管理
  7. * Class LiveLink
  8. * @package app\store\controller
  9. */
  10. class LiveLink extends Controller
  11. {
  12. /**
  13. * 绑定数据表
  14. * @var string
  15. */
  16. protected $table = 'PlatformSet';
  17. /**
  18. * 直播链接管理
  19. * @auth true
  20. * @menu true
  21. * @throws \think\Exception
  22. * @throws \think\db\exception\DataNotFoundException
  23. * @throws \think\db\exception\ModelNotFoundException
  24. * @throws \think\exception\DbException
  25. * @throws \think\exception\PDOException
  26. */
  27. public function index()
  28. {
  29. $this->title = '链接管理';
  30. $query = $this->_query($this->table)->where(['id'=>[2,3]])->order('id desc')->page();
  31. }
  32. /**
  33. * 编辑链接
  34. * @auth true
  35. * @menu true
  36. * @throws \think\Exception
  37. * @throws \think\db\exception\DataNotFoundException
  38. * @throws \think\db\exception\ModelNotFoundException
  39. * @throws \think\exception\DbException
  40. * @throws \think\exception\PDOException
  41. */
  42. public function edit()
  43. {
  44. $this->title = '编辑链接';
  45. $this->_form($this->table, 'form');
  46. }
  47. }