Commit ab9fbe18 authored by sugar's avatar sugar

Merge branch 'dev' of http://rungit.jxdsy.cn:10000/sugar/zhupu into dev

parents 68483aaf 73fd77b6
Pipeline #697 canceled with stages
......@@ -99,6 +99,7 @@ class FamilyPeople extends Backend
if ((!$params['intro'] || empty($params['intro'])) && $params['audit'] == 2) {
$this->error('请填写操作备注!');
}
$params['status']=$params['audit'] ==1?1:0;
$result = $row->allowField(true)->save($params);
......
......@@ -44,6 +44,7 @@ class FamilyTreeService
$people['sleep_place']=isset($param['sleep_place'])?$param['sleep_place']:'';
if(isset($param['people_id']) && !empty($param['people_id'])){//如果成员存在
$people['audit']=$people['status']=0;
FamilyPeopleModel::dataUpdate(['id'=>$param['people_id']],$people);
$people['id']=$param['people_id'];
return $people;
......
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