BaseLogic.php 656 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\mobile\logic;
  3. class BaseLogic
  4. {
  5. protected static $aid = 0;//当前操作的账户id
  6. protected static $aname = '';//当前操作的账户名
  7. protected static $company_id = 0;//企业id
  8. protected static $card_id = 0;//卡类型id
  9. protected static $group_id = 0;//所属组合id
  10. //设置用户信息
  11. public static function setUserInfo(int $aid = 0, string $aname = '', int $company_id = 0, int $card_id = 0,int $group_id=0)
  12. {
  13. self::$aid = $aid;
  14. self::$aname = $aname;
  15. self::$company_id = $company_id;
  16. self::$card_id = $card_id;
  17. self::$group_id = $group_id;
  18. }
  19. }