User.php 560 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\Home\controller;
  3. use think\Db;
  4. class User extends Base
  5. {
  6. public function __construct()
  7. {
  8. parent::__construct();
  9. }
  10. public function Info(){
  11. return app_show(0,"获取成功",$this->userinfo);
  12. }
  13. /**
  14. * @param 地址列表
  15. */
  16. public function AddrList(){
  17. $list = Db::name("rela_addr")->alias('a')->join("addr as b","a.addrid=b.id","left")->where(["a
  18. .accountid"=>$this->userinfo['id'],"b.is_del"=>0])->select();
  19. return app_show(0,"获取成功", $list);
  20. }
  21. }