BaseLogic.php 447 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\admin\logic;
  3. class BaseLogic
  4. {
  5. protected static $uid = 0;//当前操作的用户id
  6. protected static $uname = '';//当前操作的用户名
  7. protected static $roleid = 0;//当前操作的用户角色id
  8. //设置用户信息
  9. public static function setUserInfo(array $user = [])
  10. {
  11. self::$uid = $user['uid'];
  12. self::$uname = $user['uname'];
  13. self::$roleid = $user['roleid'];
  14. }
  15. }