View.php 649 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Main\Lib;
  3. use Dever;
  4. class View
  5. {
  6. # 执行结束时执行的
  7. public function end($param)
  8. {
  9. # 不再执行syncone等后续操作
  10. Dever::config('base')->after = 1;
  11. # 用户预约
  12. if ($param['type'] == 3) {
  13. if (isset($param['status']) && $param['status'] == 2) {
  14. # 直播中
  15. Dever::load('act/lib/watch')->submit($param['uid'], $param['id'], $param['type']);
  16. }
  17. }
  18. if ($param['addview']) {
  19. # 浏览量+1
  20. Dever::load($param['method'])->addView($param['id']);
  21. }
  22. }
  23. }