1234567891011121314151617181920212223242526 |
- <?php
- namespace Main\Lib;
- use Dever;
- class Core
- {
- protected $data;
- public function __construct()
- {
- # 获取用户信息
- //$this->data['uid'] = Dever::load('passport/applet')->check();
- $this->data['uid'] = 1;
- # 获取基本配置
- $this->data['config'] = Dever::db('main/config')->one();
- }
- protected function log()
- {
- $input = Dever::json_encode(Dever::input());
- $url = Dever::url();
- Dever::log($url . '||' . $input, 'request');
- }
- }
|