...
|
...
|
@@ -281,7 +281,7 @@ class User extends Api |
|
|
$house = House::get($house_id);
|
|
|
empty($house) && $this->error('社区信息不存在');
|
|
|
|
|
|
$info = UserHouse::get(['user_id'=>$user['id'],'house_id'=>$house_id]);
|
|
|
$info = Db::name('user_house')->where(['user_id'=>$user['id'],'house_id'=>$house_id])->find();
|
|
|
empty($info) && $this->error('绑定信息不存在');
|
|
|
|
|
|
$info['status'] != 2 && $this->error('您还没有绑定该小区,无法解绑');
|
...
|
...
|
|