BaseLogic.php 553 B

1234567891011121314151617181920
  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 = '';//企业id
  8. protected static $card_id = '';//卡类型id
  9. //设置用户信息
  10. public static function setUserInfo(int $aid = 0, string $aname = '', int $company_id = 0, int $card_id = 0)
  11. {
  12. self::$aid = $aid;
  13. self::$aname = $aname;
  14. self::$company_id = $company_id;
  15. self::$card_id = $card_id;
  16. }
  17. }