Preview.php 736 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Main\Lib;
  3. use Dever;
  4. class Preview
  5. {
  6. public function article_api()
  7. {
  8. $id = Dever::input('id');
  9. $data = Dever::load('content/lib/article')->get($id);
  10. return $data;
  11. }
  12. public function vod_api()
  13. {
  14. $id = Dever::input('id');
  15. $data = Dever::load('content/lib/article')->get($id);
  16. return $data;
  17. }
  18. public function live_api()
  19. {
  20. $id = Dever::input('id');
  21. $data = Dever::load('content/lib/article')->get($id);
  22. return $data;
  23. }
  24. public function journal_api()
  25. {
  26. $id = Dever::input('id');
  27. $data = Dever::load('content/lib/article')->get($id);
  28. return $data;
  29. }
  30. }