...
|
...
|
@@ -365,16 +365,13 @@ class House extends Api |
|
|
//查出该用户已绑定的和申请中的小区
|
|
|
$user_house = Db::name('user_house')
|
|
|
->where('user_id',$user_id)
|
|
|
->where('status',2)
|
|
|
->select();
|
|
|
|
|
|
foreach ($data as &$v){
|
|
|
$v['shen_status'] = 0;
|
|
|
foreach ($user_house as &$val){
|
|
|
if($v['id'] == $val['house_id']){
|
|
|
if($v['id'] == $val['house_id']) {
|
|
|
$v['shen_status'] = $val['status'];
|
|
|
}else{
|
|
|
$v['shen_status'] = 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|