Commit bf6c294b authored by hujun's avatar hujun

1

parent 664fbf84
...@@ -43,10 +43,11 @@ class OfficeService ...@@ -43,10 +43,11 @@ class OfficeService
$result['msg'] = ''; $result['msg'] = '';
$result['data'] = []; $result['data'] = [];
if (isset($data['id'])) { if (empty($data['id'])) {
$scene = 'edit';
} else {
$scene = 'add'; $scene = 'add';
} else {
$scene = 'edit';
$data['upload_id'] = $agent_id;
} }
$check = $this->validate->scene($scene)->check($data); $check = $this->validate->scene($scene)->check($data);
......
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