Member.php 468 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Option\Lib;
  3. use Dever;
  4. class Member
  5. {
  6. public function getInfo($id)
  7. {
  8. if ($id < 0) {
  9. return '无';
  10. }
  11. $account = Dever::db('option/member')->find($id);
  12. if ($account) {
  13. $string = $account['name'] . '<br />' . $account['mobile'] . '<br />' . $account['idcard'] . '<br />' . $account['key'];
  14. return $string;
  15. } else {
  16. return '';
  17. }
  18. }
  19. }