...
|
...
|
@@ -333,6 +333,7 @@ class House extends Api |
|
|
"price"://入驻金额
|
|
|
"shen_status"://状态0选择1申请中2已绑定
|
|
|
"house_valid"://入驻社区有效期(天)
|
|
|
"is_valid"://是否在有效期0=否1=是
|
|
|
}
|
|
|
]
|
|
|
}
|
...
|
...
|
@@ -376,6 +377,14 @@ class House extends Api |
|
|
}else{
|
|
|
$v['shen_status'] = 0;
|
|
|
}
|
|
|
$where_store_house = [
|
|
|
'user_id' => $this->auth->id,
|
|
|
'store_id' => $store['id'],
|
|
|
'house_id' => $v['id'],
|
|
|
'end_time' => ['>',time()]
|
|
|
];
|
|
|
$store_house = Db::name('store_house')->where($where_store_house)->count();
|
|
|
$v['is_valid'] = $store_house ? 1 : 0;
|
|
|
}
|
|
|
} else {
|
|
|
//查出该用户已绑定的和申请中的小区
|
...
|
...
|
|