master
cody 9 months ago
parent 77052d0022
commit 13e5ac994b

@ -205,9 +205,9 @@ class VisitController extends CommonController
$all['department_id'] = $this->getUser()->department_id;
$all['code'] = randStr(6, true);
}
dd($all);
$model->fill($all);
$model->save();
dd($model);
VisitLog::add($this->getUser(), '', $model->id, isset($all['id']) ? '更新拜访记录' : '新增拜访记录');
DB::commit();
return $this->success('更新成功');

Loading…
Cancel
Save