Commit 358676e5 authored by 蔡闯's avatar 蔡闯

20201-3-2

parent 0b940e82
......@@ -77,9 +77,8 @@ class Vacancy extends Base
} else {
$res = $this->checkVacancyCode($vacancy_code,0,$data['layout_id'] );
}
if($res['code'] != 200) {
echo -1;
return $this->returnJson([],$res['msg'],400);
}
$data['vacancy_code'] = $vacancy_code ;
......@@ -94,6 +93,7 @@ class Vacancy extends Base
//判断物业服务开始时间和结束时间是否合理
$res = $this->checkVacancyPropertyTime($data['property_start_time'],$data['property_end_time']);
if($res['code'] !=200) {
echo 0;
return $this->returnJson([],$res['msg'],400);
}
}
......@@ -130,9 +130,11 @@ class Vacancy extends Base
if($vacancy_id) { //修改
$operation = Db::name('house_vacancy')->where(['vacancy_id'=>$vacancy_id])->save($data);
$change = Db::name('house_user_bind')->where(['vacancy_id'=>$vacancy_id])->save($add);
if($operation || $change) {
if($operation || $change ) {
echo 1;
return $this->returnJson([],'success');
} else {
echo 2;
return $this->returnJson([],'error',400);
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment