1234567891011121314151617181920 |
- <?php
- namespace app\admin\logic;
- class BaseLogic
- {
- protected static $uid = 0;//当前操作的用户id
- protected static $uname = '';//当前操作的用户名
- protected static $roleid = 0;//当前操作的用户角色id
- //设置用户信息
- public static function setUserInfo(array $user = [])
- {
- self::$uid = $user['uid'];
- self::$uname = $user['uname'];
- self::$roleid = $user['roleid'];
- }
- }
|