Core.php 401 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Source\Lib;
  3. use Dever;
  4. class Core
  5. {
  6. /**
  7. * 日志记录
  8. *
  9. * @return mixed
  10. */
  11. public function save($uid, $id)
  12. {
  13. $input = Dever::json_encode(Dever::input());
  14. $url = Dever::url();
  15. $log = array
  16. (
  17. 'uid' => $uid,
  18. 'source_id' => $id,
  19. 'input' => $input,
  20. 'url' => $url,
  21. );
  22. Dever::log($log, 'source');
  23. return true;
  24. }
  25. }