mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-12 03:01:18 +00:00
18 lines
390 B
PHP
18 lines
390 B
PHP
<?php
|
|
namespace app\ebapi\controller;
|
|
|
|
|
|
class AuthController extends Basic
|
|
{
|
|
protected $uid = 0;
|
|
|
|
protected $userInfo = [];
|
|
|
|
protected function _initialize()
|
|
{
|
|
parent::_initialize();
|
|
//验证TOken并获取user信息
|
|
$this->userInfo=$this->checkTokenGetUserInfo();
|
|
$this->uid=isset($this->userInfo['uid']) ? $this->userInfo['uid'] : 0;
|
|
}
|
|
} |