...
|
...
|
@@ -490,7 +490,10 @@ class House extends Api |
|
|
$this->error($validate->getError());
|
|
|
}
|
|
|
|
|
|
$info = Db::name('user_house')->where('user_id',$param['user_id'])->where('house_id',$param['house_id'])->find();
|
|
|
$info = Db::name('user_house')->where('user_id',$param['user_id'])
|
|
|
->where('house_id',$param['house_id'])
|
|
|
->where('status',['in',[1,2]])
|
|
|
->find();
|
|
|
if(empty($info)){
|
|
|
$param['createtime'] = time();
|
|
|
$param['updatetime'] = time();
|
...
|
...
|
|