123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Source\Lib;
- use Dever;
- class Core
- {
- /**
- * 日志记录
- *
- * @return mixed
- */
- public function save($uid, $id)
- {
- $input = Dever::json_encode(Dever::input());
- $url = Dever::url();
- $log = array
- (
- 'uid' => $uid,
- 'source_id' => $id,
- 'input' => $input,
- 'url' => $url,
- );
- Dever::log($log, 'source');
- return true;
- }
- }
|