LotteryUserExpress.class.php 619 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Cas\Dao;
  3. use KIF\Dao\DBAgileDev;
  4. use KIF\Core\Request;
  5. /**
  6. *
  7. * 用户收货地址信息
  8. *
  9. * @author lihuanchun@qq.com
  10. *
  11. */
  12. class LotteryUserExpress extends DBAgileDev {
  13. protected $tableName = 'lottery_user_express';
  14. /**
  15. * 数据库里的真实字段
  16. * @var array
  17. */
  18. protected $other_field = array(
  19. 'uid',
  20. 'phone',
  21. 'address',
  22. 'user_name',
  23. );
  24. /**
  25. * 获取用户收货信息
  26. */
  27. public function getUserExpress($uid){
  28. $ids = $this->findIdsBy(array('uid' => $uid));
  29. if(empty($ids)){
  30. return false;
  31. }
  32. $id = array_pop($ids);
  33. return $this->get($id);
  34. }
  35. }