auth->getUserinfo_tv(); $this->success(__('success'),$info); } //获取绑定的用户 public function get_bind_userid(){ $bind_user = Db::name('user')->field('id,tv_userid,comefrom')->where('tv_userid',$this->auth->tv_userid)->where('id','NEQ',$this->auth->id)->where('comefrom',1)->find(); $rs = 0; if(!empty($bind_user)){ $rs = $bind_user['id']; } $this->success(1,$rs); } }