Journal.php 680 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Main\Lib;
  3. use Dever;
  4. class Journal
  5. {
  6. # 执行结束时执行的
  7. public function end($param)
  8. {
  9. # 不再执行syncone等后续操作
  10. Dever::config('base')->after = 1;
  11. if (isset($param['uid']) && $param['uid'] > 0 && isset($param['id']) && $param['id'] > 0 && isset($param['add_num']) && $param['add_num']) {
  12. //Dever::score($param['uid'], 'read_journal', '阅读小刊');
  13. Dever::load('act/lib/subscribe')->submit($param['uid'], $param['id'], 4);
  14. //Dever::db('journal/info')->addView($param['id']);
  15. Dever::db('journal/info')->addDing($param['id']);
  16. }
  17. }
  18. }